Notifications
Clear all

[Closed] lathe modifier – how to change axis of rotation?

I am really frustrated -_-
Since a week or so i want to work with the lathe modifier through maxscript, but i dont know how to properly change the axis around which the lathe modifier works.

THe help file does not help, because

(now let me recall the line i wrote, i dont have maxscript open)
ss.modifiers.lathe.axis.rotation 0 0 0 1
(maybe the modifiers.lathe part isnt right here, but i know i can address the modifier, because i can change the amount of rotation and so on)

does nothing…

I even tried to rotate the gizmo as subobject, i learnt from the listener that the subobject level 1 is the rotate subobject (actually the only one that is available for the lathe modifier)
so i set
subobjectlevel = 1
and then i can manually in the viewport rotate the axis of rotation.
but i dont know how to do that via scripting!
because mybox.rotation style rotates the whole mesh, not only the axis…

I do hope someone can help me -_-
The listener doesnt print out any hints on how to adress the buttons in the ui ( x y and z)

thanks in advance!

3 Replies

bump

i am still interested…
nobody who can help me? Not even Bobo or someone as insane?

yes the value assignment for axis’s position, rotation and scale is not working directly by using this


$.modifiers[#lathe].axis.position
$.modifiers[#lathe].axis.rotation

here is a work around, try this(it works)


$.modifiers[#lathe][1][1].value = [10,10,10] -- for position
$.modifiers[#lathe][1][2].value = (quat -0.707107 0 0 0.707107) -- for rotation
$.modifiers[#lathe][1][3].value = [2,2,2] -- for scale

-- for x axis (quat 0 -0.707107 0 0.707107)
-- for y axis (quat -0.707107 0 0 0.707107)
-- for z axis (quat 0 0 0 1)

yeah man, that worked great!
like a charm

i only needed the second line of code and the z axis, but thanks for the full answer!

though i would like to know what this indexing actually means?