Notifications
Clear all

[Closed] controller with time range but no keys

this is an odd one. I have a script that truncates the timeline to the time range of existing keys.

but one object’s position script is mucking things up , and I can’t figure it out.


(getTimerange $ctrl_jaw.pos.controller #allKeys)
(interval 0f 37f)--has a time range!
$ctrl_jaw.pos.controller
Controller:Position_List
$ctrl_jaw.pos.controller.keys
#keys()
$ctrl_jaw.pos.controller[1]
SubAnim:Position_XYZ
$ctrl_jaw.pos.controller[1].keys
#keys()
$ctrl_jaw.pos.controller[2]
SubAnim:Position_Script
$ctrl_jaw.pos.controller[2].keys
#keys()--empty!??

3 Replies

just ask a controller the number of its keys using numKeys function

1 Reply
(@mambo4)
Joined: 11 months ago

Posts: 0
numKeys $ctrl_jaw.pos.controller
-1

I assume -1 means no keys
There is no specification of a range interval in the script controller.

you are kinda surprised seeing a valid timerange of non keyed controller. but the timerange is just an interval where the controller valid. the default value is FOREVER. but you can specify an interval for example for… hmm… a script controller