PDA

View Full Version : listing object keyframes


loran
03-25-2012, 09: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??

3rd Dimentia
03-26-2012, 03:06 AM
To list the position keys of first selected object

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

loran
03-26-2012, 05:28 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

3rd Dimentia
03-26-2012, 05:41 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"%\n" theString

loran
03-26-2012, 05:49 AM
very nice thank you!
and at last, how can I show postion AND rotation keys together?

mrfred
03-26-2012, 01:50 PM
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"%\n" 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

loran
04-02-2012, 08:07 AM
thank you guys!

CGTalk Moderation
04-02-2012, 08:07 AM
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.