ZBrushCentral

Filepath Attribute

Does a loaded ZTL or Project File have an attribute for it’s last known filepath location? Can I get that filepath from within a ZScript?

Thanks!

[GetActiveToolPath] will return the path for the active tool - select the top subtool first. There’s currently no equivalent for the project file.

http://docs.pixologic.com/user-guide/customizing-zbrush/zscripting/command-reference/#GetActiveToolPath

oh, it was right in front of me!

That will work great, thank you Marcus

Actually, that’s not quite what I wanted. I was hoping the filepath URL sticks around regardless of what happens internally to the loaded ztool.

If that first subtool in the list is moved or edited, the [GetActiveToolPath] reports a different path, one that represents the first subtool in the list.

My goal was this: Offer a custom “save” command, that also does some processing after the .ZTL is saved. I suppose I achieve the same thing with a Save As Dialog, and have the user just select the .ztl file