XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : animation tracks

02-07-2007, 04:58 PM
Is there a way to get the number of animation tracks on an object? If unclear let me know.

02-07-2007, 06:52 PM
Got most of this (if not all) from an older post on these forums, (I can't remember who to credit this too though). Returns an array with the controllers that have keys on them.

fn getControllers nodePick = (
local ctrlList = #()
local refList = refs.dependsOn nodePick

if refList != undefined then (
for r in refList do (
if (isProperty r #keyable) == true then (
if (isProperty r #keys) == true and (numKeys r) > 0 then (
append ctrlList r
join ctrlList (getControllers r)

02-07-2007, 07:05 PM
Ok, i see where this code is going, and i can modify for my exactly what i need....thanks :)

02-08-2007, 01:48 PM
I donīt know for sure but I think it is Paul Nealeīs code!

By the way, could someone explain me that "recursive function" stuff :) Iīve never got to understand it very well :)

thanks :)

CGTalk Moderation
02-08-2007, 01:48 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.