ZBrushCentral

Question: How can select multy-subtools and get the IDs of all subtools selected?

Hello ,
Objective: i need to select multy-subtools.
I hnow if i click CTRL+ALT+Click in Gizmo mode active i can select multy-subtools but when i select it this is the corresponding code:

[CanvasStroke,(ZObjStrokeV03n2%P59EP2DEPNNn-F7B0s100622Es100622Es100622EZ=YH631V317K3XH631V317)]
[CanvasStroke,(ZObjStrokeV03n2%P59EP2DEPNNn-F7B0s100622Es100622Es100622EZ=YH631V317K3XH631V317)]

I need to select the specifics subtools quickly.
So i need :
1- Select multi-subtools
2- Get the subtools ID

When i have ID of all subtools selected i can continue my script.
i wait your response.
Thanks you.

You can’t use zscript to do a mulitple selection of subtools in the same way as with the Gizmo3D. All you can do is check which subtools are visible, and then use the “visible subtools” in your script.

1 Like

Ok , Thanks @marcus_civis.
I have some question about this topic …


For example: if i have two buttons:
1- “Add subtool in array”
2- “Active-Action”

if i make an array :

[VarDef,myIntList(100),""]//max number of elements , ID subtools

i need to check if:
1- my subtool selected is on array
2- if is on array make a note else add subtool selected in array
When i have “complete” the array (so i have selected all subtools that i need) i can click the “active-action” button

, right?


Other question:

  • When i click a subtool i need to re-click on “Add subtool in array” for each one subtools?
    So the workflow is :
    -Click sibtool --> Click “Add subtool in array” —> Click an other subtool —> re-Click " Add subtool in array" … and when i have finisched i can click “Active-action” button

, right?


Other question:
When i click “Active-action” button i need to set myIntList variable to Zero, right?
Simply i can set:

[VarSet,myIntList(0),""]

, right?

Thanks for your time … :slight_smile: