Notifications
Clear all

[Closed] unwrap.scaleSelectedVertices

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

3 Replies

it works how it has to work. To scale around their center use scaleSelectedVerticesCenter

I guess that moves them less then the other one. Thanks

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