Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find node's width in Terminal mode execution (batch mode)?

Tags:

python

nuke

Command applied for NUKE's nodes:

some_node.width() 

shows wrong width.

Like backdrop width is lesser than node width inside it (is it normal!?)

some_node.screenWidth()

always shows 0 width in terminal mode.

Actually I need it for determine nodes in backdrop. Tried next code:

backdrop_node.selectNodes(True)
print nuke.selectedNodes()

But this one returns nothing in terminal mode.

Thanks in advance for any help.

like image 887
Evgeny Avatar asked Dec 18 '25 06:12

Evgeny


1 Answers

If you want to know the value of bdwidth property in The Foundry NUKE (I used mac version 11.3v3) you should type a very simple Python command:

nuke.toNode('BackdropNode1').knob(21).value()

This command works in Script Editor as well as in terminal mode.

enter image description here\

To find out what Backdrop knobs' values are in NUKE's UI just select a node and press shortcut i on your keyboard to see a DetailNodeInfo window.

enter image description here

Hope this helps.

like image 157
Andy Jazz Avatar answered Dec 19 '25 23:12

Andy Jazz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!