ZBrushCentral

Zscript rename camera?

I try to send camera data from blender to zbrush but could not find a way to rename the camera in zscript.
Ss this somehow possible?

Hi @kromar,

So to Rename a camera you gonna need to to use the ZFileUtils check here how to do :

http://docs.pixologic.com/user-guide/customizing-zbrush/zscripting/zfileutils/#renameSetNext

Here is a macro :

[IButton, "???", "rename camera",
	
	[VarSet,dllPath,"ZBRUSH_ZSTARTUP\ZPlugs64\MacroData\ZFileUtils64.dll"]

	[VarSet,newName,"My New Name"]
	[VarSet,buttonPath,"Draw:Cameras:Rename"]
	[If, (([IExists, buttonPath]) && ([IsEnabled, buttonPath])),
		[FileExecute, [Var, dllPath], RenameSetNext, newName]
		[IPress, buttonPath]
	]	

,,1]

Hope this Help!
Nicolas

2 Likes

thanks a lot for this information, i will see i can get that to work! ps sorry for the late response, i did not get any notification for the reply:(

1 Like