[Closed] Problem with modifiers center position
Hello!
I have a problem changing the center of a modifier. Maxscript use the Modifier center as coordinate system, and i don´t know how to change it. i want to use the world coordinate system.
This is my code:
geometry[num_geom].modifiers[#Bend].center = [0,0,0]
i want that the position of the bend´s center be in [0,0,0] in world coordinate system.
I tried used “in coordsys world” sentence but it didn´t work.
Thanks for help! i´m yet a noob in maxscript.
Fiz
Hi Pedro
from the maxScript help:
“To convert from local to world coordinates, you multiply the local coordinates by the nodes objecttransform matrix. To convert from world to local coordinates, you multiple the world coordinates by the inverse of the nodes objecttransform matrix.”
I made this test and worked!
$.modifiers[#Bend].center = ([0,0,0] * inverse $.transform)
Hope this help
Thanks!
I discovered my problem, in the script, i rotated the bend´s gizmo and then, then bend´s center doesn´t work, i just modified the “direction” spinner in bend modifier and then i can change the coordenate system.
Thanks for your help, i will use your code!
Fiz