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 CLOSED
 
Thread Tools Search this Thread Display Modes
Old 08 August 2007   #1
Deriving controller names in an array

Hi,

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


__________________
Spencer Carpenter
Freelance 3D Artist
www.spencercarpenter.co.uk
spencer@spencercarpenter.co.uk
 
Old 08 August 2007   #2
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.
 
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 06:54 PM.


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