My zScript/Tool Setup
-I have some buttons that will change the document size (1k, 2k, 3k, 4k). 1k and 4k are included in code below.
-I have another set of buttons that store camera angles. The "Front" button is included in the code below. You click the button and it stores your current camera angle. I've included a "Clear" button below that will remove stored camera angle from the "Front" button.
-I have another button labeled "Render". NOT included in the code below. This button looks at the "Front" button and if it has a view stored it will render that view.
Here's the problem ...
I need to do high res (4k) renders of my models. And I need some of them to be close ups of the model. When I zoom in on the model and store the camera position into the "Front" button it seems to store the view. But when I click the "Front" button again the view changes. The canvas zooms out and moves the model down on the canvas. After extensive testing it looks like zBrush won't (or can't) store a camera angle that is close up on the model. It's like there is a clipping plane that zBrush won't let the camera past. This also happens when the document is set to 2k. But when I have my document set to 1k I can get as close as I want to the model. The camera angle stores without a problem.
Why can't I store a camera angle that is close up on the model? Is this a limitation of zBrush or is my code messed up?
Thanks!Code://Choose document size [IButton,"1K","1024 X 1024", [ISet,Document:Pro,0] [ISet,Document:Width,1024] [ISet,Document:Height,1024] [IPress,Document:Resize] [CanvasZoomSet,0.87] ,,0.2 ] [IButton,"4K","4096 X 4096", [ISet,Document:Pro,0] [ISet,Document:Width,4096] [ISet,Document:Height,4096] [IPress,Document:Resize] [CanvasZoomSet,0.22] ,,0.2 ] //Store Camera View [VarDef,frontBtn(10),0] [IButton,"FRONT","Store Front Camera", //when the button is pressed: [If, frontBtn(0) == 0, //the first element is used to check if we have stored the values or not [VarSet,frontBtn(0),1]// we are storing values so our 'check' is set to one //now get the current transform values into the list [TransformGet,frontBtn(1),frontBtn(2),frontBtn(3),frontBtn(4),frontBtn(5),frontBtn(6),frontBtn(7),frontBtn(8),frontBtn(9)] ,//else we have stored values so we need to set the new position [TransformSet,frontBtn(1),frontBtn(2),frontBtn(3),frontBtn(4),frontBtn(5),frontBtn(6),frontBtn(7),frontBtn(8),frontBtn(9)] ] ,,.5 // button width ]//end button //Clear stored views [IButton,"Clear View","Clear View", //clear data from front button [If,frontBtn(0) == 1,//then [VarSet,frontBtn(0),0] ]//end if ,,0.5 //clear all button width ] //end clear all button