ballisticPenguin
06-20-2007, 07:40 PM
i'm trying to remove a bunch of keys from a lot of curves so i'm attempting to patch the names of the controllers together. the only thing that seems to be stopping me is converting the string to the appropriate class.
the command deleteKey calls for the following:
deleteKey <controller> <index>
max returns the following when i run this line:
$Bone01.rotation.controller.x_rotation.controller
Controller:Bezier_Float
here's my code:
(
foo = $Bone01
foobar = ("$" + foo.name + ".rotation.controller.x_rotation.controller")
deleteKey (foobar as bezier_float) 22
)
which returns:
-- Error occurred in anonymous codeblock
-- Frame:
-- foo: $Bone01
-- foobar: "$Bone01.rotation.controller.x_rotation.controller"
-- Type error: Type conversion needs a class argument, got: bezier_float
OK
what class am i suppose to convert the foobar string to?
the command deleteKey calls for the following:
deleteKey <controller> <index>
max returns the following when i run this line:
$Bone01.rotation.controller.x_rotation.controller
Controller:Bezier_Float
here's my code:
(
foo = $Bone01
foobar = ("$" + foo.name + ".rotation.controller.x_rotation.controller")
deleteKey (foobar as bezier_float) 22
)
which returns:
-- Error occurred in anonymous codeblock
-- Frame:
-- foo: $Bone01
-- foobar: "$Bone01.rotation.controller.x_rotation.controller"
-- Type error: Type conversion needs a class argument, got: bezier_float
OK
what class am i suppose to convert the foobar string to?
