PDA

View Full Version : How to rotate object without rotating modifier?


puas
01-03-2012, 06:54 PM
Hello,

Question. I have a PolyMesh (tire look a like) and I have a taper Modifier to give the effect of been a little flat. How can I rotate the "tire" without rotating the modifier? If I can't do it this way. What other way do you think I can do It?

Thank you
Puas

Autodesk 3ds Max Design 2012

floopyb
01-06-2012, 02:30 AM
use an Xform or Linked Xform modifier under the Taper modifier, then animate the Xfom's gizmo or link up to an animated point.

Ruramuq
01-06-2012, 05:59 AM
maybe a space warp

Swahn
01-23-2012, 01:05 PM
I think the easiest way to achieve this is to create a World Space FFD-modifier (Free Form Deformation) around your object and adjust it to simulate a flat tire. The world space modifiers are found under Create > Spacewarps > Geometric/Deformable > FFD.

It's important you use a world space modifier for this, as opposed to the sub object modifiers you find under the Modify panel.

If you still need to work with sub object modifiers for this there is a way using Script Controllers to make the modifier gizmo respond and inversely transform to any change made to the node's transform to "lock" it in place.


For this you need a control object, such as a point or dummy helper. What kind of object you use doesn't matter as long as it has a transform of it's own.
Apply a sub object modifier to the object you wish to deform.
Open up the curve editor, find your object and the modifier you want to "lock".
Expand the modifier tree in the curve editor so you see the Gizmo : Position/Rotation/Scale branch.
Right-click on it and select Assign Controller.
Assign Transform Script.
Edit the properties of the newly assigned script controller.
Create two variables inside the controller, and by clicking Assign Node point one variable to the main node of the object you want to deform, and one pointing to the main node of the control object (the helper object).
Then write the following expression (thisObj = the object containing the modifier) (thatObj = the helper object.)
thatObj.transform *inverse thisObj.objectTransform
Click evaluate.


Now you are able to control the sub object gizmo using the world based helper object, which means that if you rotate the deformed object the modifier gizmo will always stay locked in place as long as the helper object doesn't move.

CGTalk Moderation
01-23-2012, 01:05 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.