Scaling modifier gizmo

I'm having trouble forcing gizmo to scale in relation to its center (as described in max script help).

Here's the part of the code:

addmodifier $ (vSelect=Vol__Select level:2 type:1 autofit: false )
vSelect.gizmo.scale = vSelect.gizmo.scale*0.2

If I omit the second line the modifier will be placed in an object's center, but with the line modifier gets offset (as far as I can tell in a random direction, but constant for a given object) and offset is invertly proportional to the scale multiplier.

Anyone has any thoughts on this?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
br0t's picture

works for me if I do it like

works for me if I do it like this

vSelect=Vol__Select level:2 type:1 autofit: false 
 
addmodifier $ vSelect
vSelect.gizmo.scale = vSelect.gizmo.scale*0.2

Have you tried "Reset Xform" on the object before applying the modifier?

Never get low & slow & out of ideas

Alen's picture

Unfortunately neither

Unfortunately neither helped...

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.