ZBrushCentral

Looking for MultiAppend code

I’m trying to add a multiappend (subtool master) feature to my zscript, but i’m not having any luck. Tried looking/experimenting with the macro text file but it only manages to import 1 subtool.

The code for MultiAppend isn’t available. But the simplest way is to:

  1. Load the ztool you want to append.
  2. Go to the top subtool.
  3. Press the Tool>Geometry>Copy button (it’s in the Modify Topology section).
  4. Switch to the tool you want to append to.
  5. Press the Tool>Geometry>Paste Append button.
  6. Switch back to the tool loaded at (1) and select the next subtool down before repeating the steps 3 - 5.

All this can be scripted quite simply using [IPress], [ToolGetActiveIndex], [ToolSelect], [SubToolSelect] etc.

HTH,

Thanks Marcus, but i’m not sure this is what im looking for. I’m trying to import multiple obj’s at a time. I have this code

[IButton,“Zplugin:Paint2Poly:Import”,“Currently, only works 1 time. Additional meshes need to be imported manually”,
[IPress,Tool:SubTool:Insert]
[IPress,PopUp:Arrow3D]
[IPress,Tool:SubTool:SelectDown]
[IPress,Tool:Import]
,.5]//end button

but it only works one time because zbrush changes the names of the primitives (adds 01,02,03,etc) after you choose them.
2016-05-05_18-37-20.jpg

For importing OBJs you can duplicate a subtool and then import into that. So long as there are no subdivision levels the imported OBJ will replace the duplicate:

  1. Duplicate the bottom subtool.
  2. Select the duplicate subtool.
  3. Check if there are subdivision levels and delete them if necessary.
  4. Import the OBJ.
  5. Repeat 1 - 4 for all the OBJs.