copy keyframes formatted for Cinema 4D inport

What type of scripts do you need?

Moderator: byronnash

Post Reply
yogert909
Posts: 10
Joined: April 10th, 2006, 4:52 pm
Location: los angeles

Hey, I'm a javascript noob, but I'm going to try writing a .jsx script this weekend. I'm hoping that I can automate the copying of keyframes to cinema4D by the following method: http://forums.cgsociety.org/showthread. ... t=yuppster
If someone can give me some pointers or encouragement, I'd appreciate it. I'm hoping to script the following actions:

1. create a null layer that is linked by expresions to whatever layer is selected when the script is run.

2. convert expressions to keyframes so there is 1 key per frame.

3. copy the keyframes

4. format the keyframe data so that rotation data is next to postion data and not below it.

5. strip out extraneous header data.

6. multiply Y postion data by -1

7. write as tab delimited text file, or just copy to clipboard.


Thanks to anyone who can point me in the right direction. links to good reading materials would be appreciated.

Thanks
909
Paul Tuersley
Posts: 704
Joined: June 5th, 2004, 7:59 am
Location: London, UK

Well maybe you've already seen it, but check out the "AE to C4D" topic just below this one. That should get you started in the right direction.
http://www.aenhancers.com/viewtopic.php?t=456

You won't need to do the first few steps you mentioned, as the script will be able to read the values on each frame regardless of whether there's an actual keyframe at that time.

As for reading material, I get by with the AE scripting guide and a copy of the O'Reilly book JavaScript: The Definitive Guide for the standard javascript stuff. You'll also learn a lot by checking out other scripts on this and other sites.
yogert909
Posts: 10
Joined: April 10th, 2006, 4:52 pm
Location: los angeles

Sorry, I don't know why i didn't see that sitting there.
Thanks
Post Reply