Ultimately, I’m trying to setup a batch render script.
I’m having a difficult time understanding how zBrush handles Position, Scale and Rotate data. I want to use the TransformGet and Set commands which use xPos,yPos,zPos,xScale,yScale,zScale,xRotate,yRotate,zRotate.
EXHIBIT A …
[IButton,“mButton”,“myButton”,
[TransformSet,0,0,0,0,0,0,0,0,0]
[IPress,Transform:Fit]
]
…gives this result…
[IButton,“mButton”,“myButton”,
[TransformSet,0,0,0,0,0,0,0,89,0]
[IPress,Transform:Fit]
]
…gives this result …
So far so good, but here is where I get confused …
[IButton,“mButton”,“myButton”,
[TransformSet,0,0,0,0,0,0,0,90,0]
[IPress,Transform:Fit]
]
…gives this result…
…and…
[IButton,“mButton”,“myButton”,
[TransformSet,0,0,0,0,0,0,0,180,0]
[IPress,Transform:Fit]
]
…gives this result…
Question 1: Why does any Y rotational value over 90 flip the model upside down?
EXHIBIT B …
XYZ Position of 0,0,0 puts the model off the canvas somewhere. The command [IPress,Transform:Fit] is the only reason the model was on the canvas in the above examples.
Question 2: Is there a way to get the current position data of a model and see what those values are? Or figure out the values for the center of the canvas?
EXHIBIT C …
So, I’ve set a Front View in Documents:ZAppLink Properties and I’m trying to use this piece of code …
[IPress,Document:ZAppLinkProperties:Front:Front] //this line switches to the Front View saved in Documents:ZAppLink Properties
[IPress,Render:Best]
[IPress,Render:BPR RenderPass:Render Best Preview]
[VarSet,filePath,[GetActiveToolPath]]
[FileNameSetNext,[StrMerge,#filePatch,"_Front.psd"]][IPress,Document:Export]
zBrush doesn’t have any problem switching to the Front view I’ve set up (top line of code). The problem is that none of the code after this command will fire. When I remove that line of code the rest fires without a problem.
Question 3: Why won’t anything fire after switching to the Front view?
Thanks for the help!