PDA

View Full Version : Maxscript question


visualboo
09-29-2002, 03:48 PM
Does anyone know how I can keep a manip aligned with the screen?

BrandonD
09-29-2002, 06:27 PM
What do you mean? A manipulator helper object like a slider? Or a transform gizmo?

visualboo
09-29-2002, 07:38 PM
sorry I guess I should have explained myself better.

Lets say you have a manipulator gizmo (just a simple circle) and you always want it to face the camera, so that if you rotate the viewport, it still stays a circle and not a line (from the side).

Taoizm
09-30-2002, 04:33 PM
ummm.... my first guess would be to use the look at controller.

Bobo
09-30-2002, 04:42 PM
Originally posted by visualboo
sorry I guess I should have explained myself better.

Lets say you have a manipulator gizmo (just a simple circle) and you always want it to face the camera, so that if you rotate the viewport, it still stays a circle and not a line (from the side).


MAXScript Online Help,
Topic: Scripted Manipulators

gizmoUseScreenSpace

This tells the system to interpret the coordinates of the shape as device coordinates in the viewport, not as 3d values. The values are still specified as 3d points, but the "Z" coordinate is ignored, applies to all but addGizmoMesh.

gizmoUseRelativeScreenSpace

This is like gizmoUseScreenSpace, but the coordinates are specified as values from 0.0 to 1.0, and interpreted in each viewport as a percentage of the width or height of the viewport, applies to all but addGizmoMesh.

visualboo
09-30-2002, 06:16 PM
Thanks bobo

CGTalk Moderation
01-13-2006, 05:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.