ZBrushCentral

Button paths

I’m trying to get data from Zbrush menus, I thought it should be straightforward, but I’m not getting the correct strings returned:

[IButton, “Info”, “”,
[VarDef,totalPolys,0]
[VarSet,totalPolys,[IGetTitle,Preferences:Misc:Total Points Count]]
[VarSet,maxHistory,[IGetTitle,Preferences:Misc:Undo History:Max Undo History]]
[VarDef, s, “Info, n’est pas?”]
[VarSet ,s, [StrMerge, s, "
Max history: ", maxHistory, "
Total polys: "]]
[Note, s,2]
] // EoS

Not sure where I’m going wrong. I’m sure i’ve got the right button paths

It’s helpful to include the variable in the [StrMerge] if you want it to display in the Note. :wink:

But actually, you can’t get anything useful from Preferences:Misc:Total Points Count.
You can get the number of polygons in a mesh using [Mesh3DGet].

For the Max Undo History, using [IGet] will get its current setting, if that is what you are after.

[IButton, “Info”, “”,
[VarDef,totalPolys,0]
[Mesh3DGet,1,totalPolys]
[VarSet,maxHistory,[IGet,Preferences:Misc:Undo History:Max Undo History]]
[VarDef, s, “Info, n’est pas?”]
[VarSet ,s, [StrMerge, s, "
Max history: ", maxHistory, "
Total polys: ",[Val,totalPolys]]]
[Note, s,2]
] // EoS