Convert 3D null object to 2D null (with position keyframes)

What type of scripts do you need?

Moderator: byronnash

Post Reply
Simma
Posts: 98
Joined: June 8th, 2010, 2:57 pm

Nuke has this wonderful little node calles "Reconcile 3D" that is very handy in different situations. What it does is that you attach your camera to it and you attach an axis node (Nukes "nulls") to it. It then calculates the 2d position of the axis and gives you regular 2d xy position keyframes.

It would be fantastic if this could be scripted somehow in AE. For example you could select your nulls and your camera and then run the script. It would then do the calculation and create new 2d nulls with position data.

Feels likte this would be the place to look first: http://www.motionscript.com/mastering-e ... flare.html

Would anyone else find this useful? I think it would be very handy when you work with 3D tracked cameras for example and want to apply some things in 2D to the comp.
Paul Tuersley
Posts: 704
Joined: June 5th, 2004, 7:59 am
Location: London, UK

This can be done with an expression, and converted to keyframes using Keyframe Assistant > Convert Expression To Keyframes if necessary. Not sure if anyone's done this in a script yet though. If you search on here for toComp you'll find some stuff about the expression. Here's a good example:
http://www.aenhancers.com/viewtopic.php?f=6&t=1001
Simma
Posts: 98
Joined: June 8th, 2010, 2:57 pm

Thank you Paul, that worked :). Never knew about the "Create keyframes from expression" thingy. Quite handy.

I still think it would be nice to have a script for this though, maybe with an update buttuon to update keyframes if you move your nulls... Will look into what I can do with my (at the moment) poor scripting skills!
Post Reply