McMaster
06-27-2005, 01:50 PM
Hi,
as I found no way to have an UVW-Maps Gizmo centered to the origin and have several objects share this Gizmo and have it locked there I tried to write a little scipt that adds a UVW-Map to all my selected objects after I finished my work and moves every single Gizmo to 0,0,0.
(Problem is that when you create a group of all the objects and apply one UVW-Map to them, when you move one object afterwards its Gizmo doesnt stay in origin.)
So, after all I came to this script that works on one selected object, but when I select more objects, it says: Unknown property: "gizmo in Uvwmap.test"
Why is that?
for i in selection do
(
addModifier i (Uvwmap name:"test" maptype:4 length:1 height:1 width:1)
objTM = i.objecttransform
modTM = getModContextTM i i.test
i.test.Gizmo = modTM * (inverse objTM)
)
as I found no way to have an UVW-Maps Gizmo centered to the origin and have several objects share this Gizmo and have it locked there I tried to write a little scipt that adds a UVW-Map to all my selected objects after I finished my work and moves every single Gizmo to 0,0,0.
(Problem is that when you create a group of all the objects and apply one UVW-Map to them, when you move one object afterwards its Gizmo doesnt stay in origin.)
So, after all I came to this script that works on one selected object, but when I select more objects, it says: Unknown property: "gizmo in Uvwmap.test"
Why is that?
for i in selection do
(
addModifier i (Uvwmap name:"test" maptype:4 length:1 height:1 width:1)
objTM = i.objecttransform
modTM = getModContextTM i i.test
i.test.Gizmo = modTM * (inverse objTM)
)
