animatedSnap3D

 v1.1

An extension to Nuke's "snap" options for animated 3D objects. Based on a selection of vertices, this allows for objects to match the position, rotation and scale of that selection over a specified frame range.
Author
Ivan Busquets
Requirements
6.3 or later
Created on: 08/04/2012
Updated on: 07/04/2012
Downloads: 147
Login or Register

animatedSnap3D

As the name suggests, this adds "animated" options to the snap_menu in 3d nodes since Nuke 6.1.

animatedSnap3D_nuke63

 

The 3 new options work exactly the same way as their original counterparts, but extends their use to animated geometry.

animatedSnap3D_1animatedSnap3D_2

Installation:

To install, simply extract the downloaded .zip file in your .nuke directory, or anywhere else inside your NUKE_PATH.

Please note that you need to copy the whole animatedSnap3D directory, not just the files inside it.

Then add the following line to the relevant menu.py

import animatedSnap3D

 

And that's it.

Note: Currently, animatedSnap3D uses a "hack" (executing a temporary CurveTool) to force all the script to be evaluated for each frame. This may make it run slower on heavy scripts, but it's a necessary workaround for now.

 


 

UPDATE (v 1.1) :

The name of the snap3d functions changed from Nuke 6.2 to 6.3, making version 1.0 of animatedSnap3D not work in Nuke 6.3.

This has been adressed in this version (1.1). The menu entries have also been changed to match the new names in 6.3.


Comments (5)

Michael Millspaugh said:

...
When I run your script, I get an error 'module' object has no attribute 'snapToPoints'. Maybe this is easy to solve?
October 21, 2011

Ivan Busquets said:

...
Hi Michael,

Thanks, it looks like The Foundry changed the name of some of the snap functions in 6.3
I will make some changes, rename the menu entries so they match the new ones in 6.3 and re-upload soon.

In the meantime, you can type & execute this in the script editor to get it working again:

nukescripts.snap3d.snapToPoints = nukescripts.snap3d.translateRotateScaleToPoints
nukescripts.snap3d.scaleToPoints = nukescripts.snap3d.translateRotateToPoints


Cheers,
Ivan




October 22, 2011

Michael Millspaugh said:

...
Awesome!! Thanks so much. I'm just getting started in Nuke, and banging my head against the wall a bunch.

Is this still the only way to attach another object in nuke to an animated vertex from geometry? I spent some time trying to use the pythonGeo node, with some python scripting and an expression, but couldn't make it work (and of course, being a novice, couldn't troubleshoot it).
October 24, 2011

John Thompson said:

...
I`m using Nuke6.1v3
I`ve4 loaded the py file in the.nuke folder and added the import statement in the menu.py file but I do not get any snap to animated
Can you offer any suggestions
John Thopmpson
December 15, 2011

Ivan Busquets said:

...
John,

I'm sorry I missed your comment. Just saw it now when I was uploading an updated version.
Make sure you copy the whole animatedSnap3D directory into your .nuke/ directory, not just the files inside.

So, you should see a structure like this:

~/.nuke/animatedSnap3D/animatedSnap3D.py

Hope that helps.

Cheers,
Ivan

P.S. If you're using 6.3, make sure you download the latest version (1.1). I just uploaded it, it might take a little while until it shows up.

April 08, 2012

Write comment
You must be logged in to post a comment. Please register if you do not have an account yet.

busy