Notifications
Clear all

[Closed] listing object keyframes

hello people,
I want to show a picked object list of keyframes (key at 5,12,27…)
anyone knows how to do that??

6 Replies

To list the position keys of first selected object

selection[1].transform.controller.position.controller.keys

thx!
and how can I convert it to string to display it in a editext?

this doesnt works :
masterkeys.text = objB.transform.controller.position.controller.keys

You really should think about your question before posting so you get the answers you actually want first time.

 
 theKeys = selection[1].transform.controller.position.controller.keys
 theString = ""
 for i = 1 to theKeys.count do theString += (theKeys[i].time as integer/ticksperframe) as string + " "
 format"%
" theString
 

very nice thank you!
and at last, how can I show postion AND rotation keys together?

 for i =1 to 2 do
 (
 theKeys = selection[1].transform.controller.[i].keys
 theString = ""
 for i = 1 to theKeys.count do theString += (theKeys[i].time as integer/ticksperframe) as string + " "
 format"%
" theString
 )  

change : theKeys = selection[1].transform.controller.position.controller.keys
to:

for i =1 to 2 do
(
theKeys = selection[1].transform.controller.[i].keys
– your code
)
[1] = position and [2] = (second transform controller)/rotation

thank you guys!