Apr
25
node creation via python
Posted in: NUKE from The FoundryHi
I’m wondering it is possible to create and set parameters in one line via python.
For e.g. I’m trying to create crop node like this:
nuke.nodes.Crop()
but I can’t find the way to set all the 4 (x, y, r, t) box attributes.
I tried something like this:
nuke.nodes.Crop(box = [0, 0, 1920, 1080])
and this:
nuke.nodes.Crop(box = {x: 0, y: 0, r: 1920, t: 1080})
It is not working at all.
I know I can set attributes later, but it would be much simpler for me.
Post a Comment