Rotate UVWMap gizmo a selection of object
Hello everyone :)
How do I rotate the gizmo a modifier UVWMap in a selection of object?
I have 10 box and I apply to each a modifier UVWMap.
I want rotate the gizmo UVWmap to each object of 90° (or other
value) randomly pressing a button so as to have 10 objects with different rotation mapping.
My example dont work...
rollout t "Test" ( local mymod = (UVWMap()) button b "Create UVWMap" button b2 "Random" on b pressed do ( addmod = for i in selection do addModifier i (UVWMap()) ui:on ) on b2 pressed do ( giz = mymod.gizmo giz.rotation = (angleaxis -90 [0,0,1]) as quat ) ) createdialog t
If I select only one object the script works in half (the button dont refresh the value every time I press it) and if I select all object, i have this error message:
>> MAXScript Rollout Handler Exception: -- Unknown property: "gizmo" in Uvwmap:UVW Mapping <<
Can you help me? I can not find a solution....