Hi
I am saving variables to a file that is of a certain size. Then I am loading it in for use in a later session with zbrush. I have updated the variable size which no causes issues when loading the old files saved out, due to mis match in array size. Is there a way for zbrush to test the array and returning value’s rarther then giving me a error.
For example:
//Export file with size of 45
[VarDef, transforms(45),0]
[IButton,“Export”,
[VarSet, camPath, [FileNameAsk, “ZVR(.zvr)|.zvr”, “File name”, “Title name”]]
,.5]
//Import file but with array changed
[VarDef, transforms(90),0]
[IButton, Import,
[VarSet, camPath, [FileNameAsk, “ZVR(.zvr)|.zvr”, , “Title name”]]
[Note, [StrMerge,[FileNameExtract, camPath, 2]," file imported"],.7]
[VarLoad,transforms,camPath] // error array mismatch
]
The miss match makes sense but just can’t figure a way out to catch the error in a true/false way so the script doesn’t exit but just checks.
Thanks