Notifications
Clear all
[Closed] listing object keyframes
Mar 25, 2012 10:09 am
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
Mar 25, 2012 10:09 am
To list the position keys of first selected object
selection[1].transform.controller.position.controller.keys
Mar 25, 2012 10:09 am
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
Mar 25, 2012 10:09 am
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
Mar 25, 2012 10:09 am
very nice thank you!
and at last, how can I show postion AND rotation keys together?
Mar 25, 2012 10:09 am
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