PDA

View Full Version : Maxscript & Unwrap UVW modifier - short question..


Haider of Sweden
03-14-2008, 12:35 PM
Howdy!


there is the command $.modifiers[#unwrap_uvw].unwrap5.mappingMode 1, and I wonder if are ways to controll the mapping-mode.
Eg, if you scale you get a code like:
$.modifiers[#unwrap_uvw].unwrap5.setGizmoTM (matrix3 [369.588,0,0] [0,66.6068,0] [0,0,121.086] [-1.77298,-24.5168,14.2355])

What I'd like to do is to scale it/tweak it so it acts just like if I add a UVW Map modifier with the scales of eg 1m to 1m.

Is that possible by script?

PiXeL_MoNKeY
03-14-2008, 03:48 PM
You will have to alter the transformation matrix of the gizmo using the .setGizmoTM. The first 3 matrices control scale and rotation the fourth one controls the position. For further info look up the following in the MAXScript Reference:
"Matrix3 Values"
"Modifier Sub-Object Transform Properties"
"Node Modifier Transform Context Methods"
"Node Transform Properties"
"Using Node Transform Properties"
They should help you figure out what you need to do to work with modifiers and the transformation matrix.

-Eric

CGTalk Moderation
03-14-2008, 03:48 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.