PDA

View Full Version : 2 local Eulers in rotation list


snot_nose
10-22-2002, 10:19 PM
I'm using the Local Euler script:

local objetos = selection as array
for i = 1 to objetos.count do
(
select objetos[i]
objetos[i].rotation.controller = Local_Euler_XYZ()
)

written in the rig tutorial by sergio mucino.
i'm trying to apply 2 local eulers from my rotators with the rotation list constraint, but when i'm pressing on the local euler button it's deleting the rotation list constraint and applying 1 local euler.

does any1 know what should i do about it?

Reality3D
10-22-2002, 11:19 PM
Try with this

local objetos = selection as array
for i = 1 to objetos.count do
(
select objetos[i]
objetos[i].rotation.controller = Local_Euler_XYZ()
objetos[i].rotation.controller.Available.controller = Local_Euler_XYZ()
)

To work, the Rotation controller must already be a List controller

snot_nose
10-22-2002, 11:56 PM
it says:
unknown property:"available" in controller: Local Euler XYZ

LFShade
10-23-2002, 11:16 AM
Try this:

local objetos = selection as array
for obj in objetos do
(
obj.rotation.controller = rotation_list()
obj.rotation.controller[1].controller = Local_Euler_XYZ()
obj.rotation.controller.Available.controller = Local_Euler_XYZ()
)

snot_nose
10-26-2002, 11:30 PM
:beer: Yep:beer:
this one worked.
where can i learn about scripting anyway?
I learned in highschool C and pascal programming, I bet it can help me with learning to write scripts (even though i haven't touched C or Pascal for years)

CGTalk Moderation
01-13-2006, 07:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.