Locometry v2.6
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Kim Ranzani
Snap geometries to vertices.
add Locometry.py to your .nuke folder
add import Locometry to your menu.py
Requirements:
13.1, 13.0, 12.2, 12.1, 12.0, 11.3, 11.2, 11.1, 11 or later
Linux, Mac, Windows
13.1, 13.0, 12.2, 12.1, 12.0, 11.3, 11.2, 11.1, 11 or later
Linux, Mac, Windows
09 Mar 2022
744
v2.0
Python version of the Gizmo but works with alembic and custom geo's and doesn't gives you crazy flipping.
Still need to do a proper conversion from rotation matrix to Euler angles. It uses a transformGeo to link the created Axis to the geo to snap.
v2.1
Proper Euler angles ( rotation calculated in XYZ order ).
No link with transformGeo needed.
Put the Locometry.py in your .nuke as well as the icon folder. Update menu.py
v2.2
Updated to PySide2
v2.3
Fixed wrong number of vertices selection
Fixed wrong Frame Range Inputs
Logo provided
v2.4
Fixed select vertices error
v2.5
removed UI
faster as it uses a curve tool to calculate frames.
fixed skipping frames due to Threading.
v2.6
Check for selected vertices
Please login in order to download these files.
Comments
"/Users/"name"/.nuke/menu.py : error interpreting this plugin"
Tried replacing my orginal menu.py file with yours and updating my current menu.py with yours, same error.
Does this not work on v11?
thanks
Cheers.
And how do you get scaling information?
win10 error
Locometry.py", line 119, in run
nuke.executeInMainThreadWithResult(nodeToSnap['translate'].setAnimated,())
TypeError: 'NoneType' object has no attribute '__getitem__'
Replace the first line:
from PySide import QtGui, QtCore
by:
try:
from PySide import QtGui, QtCore
except ImportError:
from PySide2 import QtCore
from PySide2.QtGui import QPixmap
from PySide2 import QtWidgets as QtGui
And replace:
self.header = QtGui.QPixmap(os.path.split(__file__)[0]+'/icons/logo.png')
by:
self.header = QPixmap(os.path.split(__file__)[0]+'/icons/logo.png')
Really great tool, working in most of the cases, thank you very much!
In the cmd window it says:
line 119, in run
nuke.executeInMainThreadWithResult(nodeToSnap['translate'].setAnimated,())
TypeError: 'NoneType' object has no attribute '__getitem__'
Anyone has an idea?
I installed the plugin in Nuke 11.3. It loads but I keep getting "Select exact 3 vertices" message.
strange I'm currently using it in v11 and v12 with no errors... Have you selected exactly 3 vertices before pressing the button?
just to be sure... Have you selected 3 verteces before pressing?
for p in nukescripts.sel ectedPoints():
print(p)
This shoud return exactly 3 sets of {x,y,z} coordinates.If not something else in your script is interfering with vertex selection.
Nuke Indie 15.1v2 here.
The error appears when you have another node highlighted in the node graph when you want to create a geo snapped to the selected points. You have to make sure you select the node and the vertices.
If you want to snap an existing node then this issue doesn't happen.
I've tested on one scene so far but it seems to be working :)
RSS feed for comments to this post