Deriving controller names in an array

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  08 August 2007
Deriving controller names in an array


This script:
fn getScriptedControllers ref =

local ctrlList = #()
local refList = refs.dependsOn ref

for r in refList do
if (isProperty r #keyable == true) then
append ctrlList r

join ctrlList (getScriptedControllers r)

return ctrlList

getScriptedControllers $

...........returns an array of the animatable controllers of the selected object like this:

#(Controller:Position_Rotation_Scale, Controller:Position_XYZ, Controller:Bezier_Float, Controller:Bezier_Float, Controller:Bezier_Float, Controller:Euler_XYZ, Controller:Bezier_Float, Controller:Bezier_Float, Controller:Bezier_Float, Controller:Bezier_Scale)

Does anyone know to return an array in exactly the same order and format of the names of the controller eg. #(Transform, Position, X_Position, Y_Position ...etc..?

I have tried using .name in a couple of places but this is throwing back errors.

Can anyone help, this is the final piece of code I need to finish my script which I will post on completion..

Thanks again


Spencer Carpenter
Freelance 3D Artist
  08 August 2007
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 08:48 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.