1. #1
    New Member Follow User Gallery
    Join Date
    Dec 2018
    Posts
    12

    Default Get/Set IMM/VDM brush mesh

    Is there a way to set (select) or get current brush mesh programmably?
    For example I tried something like [IPress,Brush:IMM Basic:PolySphere], it gives an error.

    I need this to make such macros as "select next/previous mesh of brush"

  2. #2
    New Member Follow User Gallery
    Join Date
    May 2017
    Location
    Munich
    Posts
    29

    Default

    Hey me2beats!
    Here are a few usefull commands, that might help you to achieve what you want:

    [IGet,Brush:Modifiers:MultiMeshSelect] //shows the current index of your mesh
    [ISet,Brush:Modifiers:MultiMeshSelect,2] //selects the 2. mesh of the current imm brush
    [IGetMax,Brush:Modifiers:MultiMeshSelect] //shows how many meshes are stored in the brush
    [IGetTitle, Brush:Modifiers:MeshInsertPreview] //shows current imm mesh name

    So to select the next mesh from your brush, you would want to:
    -[IGet] what mesh you currently have selected
    -then [ISet] to the next index
    -while staying in the range of the meshes your IMM has, using [IGetMax]

  3. #3
    New Member Follow User Gallery
    Join Date
    Dec 2018
    Posts
    12

    Default

    Wow, thanks a lot!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •