PDA

View Full Version : unwrap.scaleSelectedVertices


Hobbs
01-21-2010, 03:55 PM
I could be using this incorrectly, but can someone tell me why this

local unWrapMod = modpanel.getcurrentobject()
unWrapMod.unwrap.scaleSelectedVertices .5 1 [1,0,0]

scales the uv's correctly, but tends to shoot them off way in the negative or positive direction, and doesn't keep them in relatively their original location?

Or is there a better way to do this?

Thanks

denisT
01-21-2010, 04:55 PM
it works how it has to work. To scale around their center use scaleSelectedVerticesCenter

Hobbs
01-21-2010, 05:02 PM
I guess that moves them less then the other one. Thanks

PiXeL_MoNKeY
01-21-2010, 05:48 PM
The problem is this:unWrapMod.unwrap.scaleSelectedVertices .5 1 [1,0,0]The point3 defines where the center of the scale. You are scaling from U/X coordinate 1.0 as your center. Personally I use unwrap2.ScaleSelected or unwrap2.ScaleSelectedCenter as it works on any subobject selection. Both respect the same parameters as the vertex specific versions.

-Eric

CGTalk Moderation
01-21-2010, 05: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.