State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:550329|
node.format() cannot be used to set the format knobformat = nuke.toNode("CheckerBoard1").format() nuke.root()["format"].setValue(format)
3) Observe the warning that appears: Root.format format {...} not in named format list
setValue() on the Root format should succeed when passing a Format object returned by node.format().node.format() raise a "format not in named format list" warning when attempting to setValue() on the format knob.node.format(), any of the following options should allow the Root format to be set correctly and without a warning, but this only works if the node has a format knob, and the last workaround only works if the format has a name:
format = nuke.toNode("CheckerBoard1")["format"].value()nuke.root()["format"].setValue(format)#----------------------------------------format = nuke.toNode("CheckerBoard1")["format"].actualValue()nuke.root()["format"].setValue(format)#----------------------------------------formatName = nuke.toNode("CheckerBoard1").format().name()nuke.root()["format"].setValue(formatName)
We're sorry to hear that
Please tell us why