ZBrushCentral

How to get the name of a folder in the subtool list?

Hi.

Is there a way to get the name of a folder in the sub tool list?

I can get the name and ID of a subtool and the ID of a folder, but I don’t know how to get the name of a folder.

Please give me advice!

Thanks.

Hi,
Welcome to ZBC! :slight_smile:

You can do it like this:

[VarSet,activeST,[SubToolGetActiveIndex]]		
[VarSet,tmpFdr,[SubToolGetFolderIndex,activeST]]
[If,(tmpFdr > -1),//we have a folder		
	[VarSet,folderName,[SubToolGetFolderName,tmpFdr]]	
]

You need to have a subtool in the folder selected.

HTH,
Marcus

1 Like

I was able to get the name of the folder. :smile:

thank you so much!!

1 Like