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:
- Load the ztool you want to append.
- Go to the top subtool.
- Press the Tool>Geometry>Copy button (it’s in the Modify Topology section).
- Switch to the tool you want to append to.
- Press the Tool>Geometry>Paste Append button.
- 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.
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:
- Duplicate the bottom subtool.
- Select the duplicate subtool.
- Check if there are subdivision levels and delete them if necessary.
- Import the OBJ.
- Repeat 1 - 4 for all the OBJs.