Current Events > Need a good python scripter.

Topic List
Page List: 1
DoGCyN
04/08/21 11:31:34 AM
#1:


I have no idea if Python and Nuke's Python are the same. Someone hit me up.

for node in nuke.allNodes():
if node.Class() == 'Merge2':
print node['operation'].name()

What I want is the actual operation of the node, which would be "atop, over, soft-light, etc." however it just prints "Operation" over and over and over again.



---
---
... Copied to Clipboard!
Questionmarktarius
04/08/21 11:32:44 AM
#2:


Eric Idle
... Copied to Clipboard!
DoGCyN
04/08/21 11:43:45 AM
#3:


Okay I figured it out. It wasn't ".name" after operation, it was ".value"

Each operation (over, atop, soft-light, etc.) is counted as an integer. Now I can finish this damn work script.

---
---
... Copied to Clipboard!
#4
Post #4 was unavailable or deleted.
Topic List
Page List: 1