Not sure I want to name every random format that might be in someones
script.

I'm still baffled with my original example. I compare every attribute I can
between the format I get from the node.format() method vs. the
node['format'].value() and they appear identical in all aspects, yet one
fails and the other works.

This seems like a possible Nuke bug?

Anyways, in the meantime, I've come up with a workaround by sucking all the
info out of the Format object and building a string that can be used with
.fromScript().

Here's an example:

a = nuke.toNode("Blur")
b = nuke.toNode("CheckerBoard")

f1 = a.format()
w = str(f1.width())
h = str(f1.height())
p = str(f1.pixelAspect())
n = str(f1.name())
if n == 'None': n = ''
f2 = w + ' ' + h + ' 0 0 ' + w + ' ' + h + ' ' + p + ' ' + n

b['format'].fromScript(f2)


--Xavier
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to