Ym_alignNodes -node align tool- v1.7


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Yousuke Matsuno
Website: www.mat-vfx.com
This script helps to align messed up nodes.
Requirements:
6.1, 6.2 or later
Linux, Mac, Windows
10 Mar 2011
589

[ Ym_alignNodes ver 1.5 ]     update. 03 March 2011

-- Nuke align nodes tool --

This script helps to align messed up nodes.

1. align along X axis or Y axis.
2. align equal interval between each node.



-Use-
Select nodes which you want to align and run.

-Install-

Copy files to .nuke directory

icon
Ym_alignNodes.py
menu.py
init.py

##---------- Ym_alignNodes ----------

import  Ym_alignNodes

toolbar = nuke.toolbar('Nodes')
mcMenu = toolbar.addMenu('Ym_alignNodes Ver1.5', icon='alignNodes.png')

mcMenu.addCommand('Left X', 'Ym_alignNodes.alignLX()', '+F1',icon='leftX.png')
mcMenu.addCommand('Center X', 'Ym_alignNodes.alignCX()', '+F2',icon='centerX.png')
mcMenu.addCommand('Right X', 'Ym_alignNodes.alignRX()', '+F3',icon='rightX.png')
mcMenu.addCommand('Interval X', 'Ym_alignNodes.align_intX()', '+F4',icon='intervalX.png')

mcMenu.addCommand('Top Y', 'Ym_alignNodes.alignTY()', '+F5',icon='topY.png')
mcMenu.addCommand('Center Y', 'Ym_alignNodes.alignCY()', '+F6',icon='centerY.png')
mcMenu.addCommand('Under Y', 'Ym_alignNodes.alignUY()', '+F7',icon='underY.png')
mcMenu.addCommand('Interval Y', 'Ym_alignNodes.align_intY()', '+F8',icon='intervalY.png')

mcMenu.addCommand('Interval XX', 'Ym_alignNodes.align_intXX()', '+F9',icon='intervalXX.png')
mcMenu.addCommand('Interval YY', 'Ym_alignNodes.align_intYY()', '+F10',icon='intervalYY.png')

- Notice -
Request of improvement :  feel free to contact me!

------------ Copyright (c) 2011 Yousuke Matsuno -------------
[email protected] / http://www.mat-vfx.com
-----------------------------------------------------------------------------
Please login in order to download these files.

Comments   

 
0 # Pau Rocher 2011-03-07 11:12
Sweet!! I am an obsessed about the appearance of my trees ...This will come in very handy!!
Thanks!!
 
 
0 # Shane Holloman 2011-03-07 18:07
Have placed this in my .nuke folder and it loads to the menu with icons etc no problem. However when I try to load it I get this error:

Traceback (most recent call last):
File "", line 1, in
NameError: name 'alignCX' is not defined
 
 
0 # Yosuke Matsuno 2011-03-08 02:40
Sorry I mistook to attach wrong file..(add_this_script_to_menu.py)

I uploaded new file my web site.
http://www.mat-vfx.com/tool_n01.html
I couldn't update this Nukepedia post. Perhaps there is a time lag.
 
 
0 # Jim Spratling 2011-03-08 02:52
Copy the menu.py text above and use that instead of the one in the download, should work.
(The bit that starts with '##---------- Ym_alignNodes ----------')
 
 
0 # Torbjorn Lindback 2011-04-01 05:19
Great Yousuke! Glad people are using it, I'm getting it now too! :-)

/ Tobey
 
 
0 # Yosuke Matsuno 2011-04-01 06:11
Thank you Tobey!!
I hope this script would help your messed up nodes as much as possible:-)
 
 
0 # Torbjorn Lindback 2011-04-01 06:25
Me, messy? :-) Noo!
 
 
0 # Yosuke Matsuno 2011-04-01 06:38
Haha! But my nodes are always messy. So I exactly need this one.
Please give me a feedback after using:-).
 
 
0 # Chas Naylor 2012-05-22 13:00
Absolutely killer, thanks!
 
 
-1 # kishan kumar 2014-04-23 06:58
this script not work in nuke8..pls help me
 
 
0 # Sebastian Nozon 2014-07-18 12:09
It's not working here either. The aligning works but not the functions to space it in intervals.

i am getting this as error:

Ym_alignNodes.py", line 210, in align_intY
scList[n].setYp os(yl - sizeGap)
TypeError: integer argument expected, got float
 
 
0 # Alexis Oblet 2017-01-11 15:05
You can cast to int:

scList[n].setYpos(int(yl - sizeGap))
 

You have no rights to post comments

We have 3829 guests and 120 members online