ZBrushCentral

Duplicate folder by script

Hello i need to duplicate the folder and i made this script:

[VarSet,STFolderName,[SubToolGetFolderName]] //Get name folder
[Note,STFolderName]
[VarSet,STFolderIndex02,[SubtoolGetFolderIndex]] //get Index folder
[Note,STFolderIndex02]
[IModSet,Tool:SubTool:STFolderName,STFolderIndex02]
[IPress,Folder Actions:Duplicate]

How can fix it?
i need your help : @ MARCUS_CIVIS

Hi @netkingZ ,

Unfortunately that will not work. The folder actions will not work with zscript.

The way you could do it is to run through the subtools in the folder, duplicating each one and moving each duplicate out of the folder into a new folder. You would have to use the ZFileUtils to name the new folder. As you will guess, all rather tricky!

Marcus

1 Like