animatedSnap3D v1.1
This location is for Registered Users Only.
Perhaps you need to login or register.
6.3 or later
animatedSnap3D
As the name suggests, this adds "animated" options to the snap_menu in 3d nodes since Nuke 6.1.
The 3 new options work exactly the same way as their original counterparts, but extends their use to animated geometry.
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
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
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).
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
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.
This sounds like your selected vertex might not exist in later frames. Where are you selecting your point from? This could be the case if your point comes from a point cloud, or geometry with varying topology (not the same number of vertices on each frame).
Are you able to "see" your selected point on the frame where it fails?
https://gist.github.com/jedypod/98dc18acd8008e7e5cbe
it's just worked when I replaced the text in " init " to " menu.py " and the text inside " menu " to " init " , you did the opposite in instructions .
respect the install info, tried also to follow Mohamed comments
getting the following error
module 'animatedSnap3D ' has no attribute 'translateThisN odeToPointsAnim ated'
animatedSnap3D.py
Line 116: except ValueError, e:
Change to:
except ValueError as e:
__init__.py
Renamed to:
menu.py
Line 1:
from animatedSnap3D import *
Change to:
import animatedSnap3D
i just want to check I am following your changes correctly, so you are changing the init.py file name to menu.py and keeping it in the animatedSnap3D folder? and then after that you are also changing line one to import animatedSnap3D?
or are these different changes, the menu.py is in the .nuke folder and I get an error in every way I have interpreted this
thanks so much, really need this!
This is the point
"Put the whole animatedSnap3D folder in your .nuke folder
Add the following line to your init.py in /.nuke.
nuke.pluginAddPath('./animatedSnap3D')"
Thank you!
Sorry for the very late reply.
1. Quote: Yes, rename it into menu.py and keep it in the folder.
2.Quote:
Yes, I modified it to import the module here.
3. Quote: This might be where you get your problem.
Could you try to
So in init.py, instead of nuke.pluginAddP ath('./animated Snap3D') I use
nuke.pluginAddPath("./animatedSnap3D")
From my limited understanding of Python this shouldn't make a difference but it was only after doing that, did this finally work.
sadlly seem like the owner drop this project... we have not seen any update...
Same error as others have reported, "module 'animatedSnap3D ' has no attribute 'translateThisN odeToPointsAnim ated'
When I remove this line in init.py Nuke can open but the plugin doesnt show up in the snap menu.
It only shows up when I go back and rename the menu.py in the plugin folder back to __init__.py but then of course the first issue comes up where I get the error module 'animatedSnap3D ' has no attribute 'translateRotateThisNodeToPointsAnimated'
Please Help
https://pastecode.io/s/n858vgdg
Create the "menu.py" or "init.py" in your .nuke folder, if it does not already exist.
Edit:
if you create a new "menu.py, remember to start with Quote:
1) "Put the whole animatedSnap3D folder in your .nuke folder
2) if it does not already exist, Create the "menu.py" & "init.py" in your .nuke folder
if you create a new "menu.py, remember to start with import nuke
3) Add the following line to your Menu.py in /.nuke.
import animatedSnap3D
4) Add the following line to your init.py in /.nuke.
nuke.pluginAddPath('./animatedSnap3D')
5) inside the animatedSnap3D folder make changes to the animatedSnap3D.py
Line 116: except ValueError, e:
Change to:
except ValueError as e:
6) inside the animatedSnap3D folder firstly Rename __init__.py to: menu.py
now make these changes to that same file
Line 1:
from animatedSnap3D import *
Change to:
import animatedSnap3D
That worked in Nuke indie v15.0v04
RSS feed for comments to this post