W_scaleTree v2.2
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Wouter Gilsing
UPDATED v2.2. A panel to quickly resize a selection of nodes in a controllable way by setting a pivot point. Works with backdrops.
Requirements:
11.0, 10.5, 10.0, 9.0, 8.0 or later
Linux, Mac, Windows
11.0, 10.5, 10.0, 9.0, 8.0 or later
Linux, Mac, Windows
07 Mar 2018
1950
W_scaleTree
A panel to quickly resize a selection of nodes in a controllable way.
- Offers the option to set a pivot point.
- Allows the user to preform a uniform scale as well as scaling in separate axes.
- Takes a node’s screensize into account to ensure a correct alignment.
- Resizes backdrop nodes correctly to keep them fitting their content.
- Use a shortcut to open and close a floating panel or use the tool as a docked widget.
- Hotkeys 1, 2, 3 and 4 are setup to quickly set the pivot to a corner.
New in v2.0:
- Added the option to evenly distribute the selected nodes.
New in v2.1:
- Works properly inside groups.
- Nuke 11 ready.
New in v2.2:
- Bug fix.
Distribute your nodes evenly
Works with backdrops.
Use a shortcut to open and close a floating panel or use the tool as a docked widget.
Create a folder called 'icons' in your .nuke folder, and place the 'W_scaleTree' folder (the folder containing the icons) in there. If you would rather place the icons elsewhere, make sure to update this in the python code as well (line 25)
Add the following to your menu.py
1
2
|
import W_scaleTree
|
Please login in order to download these files.
Comments
If I missed any major features you had in mind and would like to share, let me know!
Keep rocking
What about a rotation parameter by 90deg ? Can be handy...
Thanks a lot for this one !
Personally, I don't think I would ever use that feature. However, if there are more people who would like to see the option to rotate your nodes, let me know and I will make sure it finds it way into an updated version of the tool.
it does what it needs to do but is it possible in a future version to add some thing that comes up when selecting nodes, a transform gadget, similar to what comes up when you select points of a roto. as it is is damn awesome.
love it ..
If you are interested/have time I can send you the unfinished code and you can pick it to bits.
I do like your UI though :)
That would be great, it's always interesting to look at tools someone else wrote! I could try and see if it would be possible to somehow integrate it in the current tool.
Thanks
Hi Frank,
any news with the development of your tool? I'm just testing different tools for manipulating nodes out there and how you described your ideas is just exactly how I dreamed of this function to be ;) if you're not done yet, I'd even very much appreciate to see the code for inspiration :)
Thanks,
Vit
That sounds really cool! So what is it, like, a bounding box that shows up on the node graph that you can then drag around to rescale it?
I haven't been able to find anything in the docs about how to get any information on the view of the node graph (pan or zoom info). Is that how you're doing it? Or is it sliders that pop up or what?
Either way, I'd love to be able to read through your code if you've still got it around.
and maybe some sort of fall off, so if you wanted to expand the space in the center of a comp, you could make that space with out where you needed it with out stretching out the hole node tree
Are there more people here who would like to see this feature?
If I could put in my own feature request though, it would be for a more intuitive interface. My suggestion would be a rectangle drawn around the selected nodes (that only shows up when I hit a shortcut) that I can then drag on the corners or edges to adjust the scale.
import W_scaleTree
nuke.menu('Nuke').addCommand('Edit/Node/W_scaleTree', 'W_scaleTree.sc aleTreeFloating Panel()', 'alt+`')
And that shortcut key doesn't work. Nothing happens when I press, Alt + '
Quoting Anthony Thomas:
And make sure to press ` rather than '. It's the one that shares a key with the ~ and is located above Tab (or at least it is on my keyboard)
In one situation I thought the tool wasn't responding until I came out of the group graph... oops
Just uploaded v2.1 which should work propely with nodes inside groups.
Cheers
you make me feel you are programmer not compositor anymore haha
And the two go together very well actually!
Would absolutely, no doubt, still consider myself a 'programming comper' though, rather than a 'comping programmer', haha.
Cheers
Just letting you know that in v2.1, the anchor point selection seems a bit unsteady. It doesn't crash, but not all the buttons in the grid show up, and as you select them, they slowly disappear.
The sliders still work and are really great though! I'd be very excited if you ever implemented Frank's bounding box overlay too ;)
There was an issue with windows explorer when I copied the icons folder in, and it was missing icons 5-9. Replacing those, your work seems as flawless as ever. Great tool dude!
Any thoughts?
Using "node" overwrote the backdrop that was stored in it beforehand, and threw all sorts of "NoneType" etc. errors.
Cheers
I think it should become a "nodetree-shape"-tool.
One easy thing (I already added it under your buttons) would be to move every node with another slider, so that you can just push them up/down/left/ri ght. It's nice to get more space between certain groups of nodes and then you can scale the area inside this group to add more nodes.
Next step would be to mirror nodes - handy if you need to switch just the side of a mask input.
And I already read that a rotation-option was wished. This could be tricky, but f.E. if I have a mask input that's coming from above the node (vertical working vs. horizontal working ;-)) and then want to copy them to another node which has the mask coming from the side, I have to rearrange every node to make them fit smoothly. So rotating them around a pivot would be nice!
If you have an idea for these additional features, I think this tool would become even more fantastic!
The cmd window spits out: object has no attribute 'nextView'
But also underneath I get the Non-Commercial mode 10-node python error... which might stop the script at some point and therefore break the cycles...
What's the shortcut for closing?
Any chance that there will be an update?
I'll have a look at this when I got some time on my hands!
Cheers
Thanks anyways for your quick answer and willingness to update it. I absolutely love that tool.
Best
Nicholas Zissimos
Just one request if i can, is it possible somehow to scale backdrops in an alternative way so it also scales it vertically along with the rest of the tree? right now it scaled so it stays in place. height scales correctly but width seems to just stay more or less the same width if you scale horizontally or uniform. try with for example an aov breakout that has backdrops around the passes and you'll see what i mean. hope this explains what i mean..
Either way if its possible or not, fantastic tool as always man! :)
We solve this issue in not very elegant way - putting dots in corners of backdrops, but curious if you could solve it in a proper way.
Thank you so much!!!!
Thank you!!
I have notice a litlle bug with the shorcut 1.2.3.4. If the tool is in a visible docked panel, the shortcut is messing with the viewer inputs shortcut.
A simple hack is to just hide the panel when you don't need it.
If i am selecting nodes together with BackdropNode - tool is not working correctly, please have a look if you will have time.
Thank you very much!
RSS feed for comments to this post