hi Paul,
check the code in the 'statusmessage' python script knob of the group i
pasted below.
is this what you're after?
cheers,
Holger
Group {
name Group1
selected true
xpos -96
ypos -675
disable true
}
Input {
inputs 0
name Input1
selected true
xpos 0
ypos 46
}
add_layer {rgb rgb.red rgb.green rgb.blue}
add_layer {rgba redguard1.glow rgba.edgeblur}
Grade {
name Grade1
selected true
xpos 0
ypos 140
addUserKnob {20 User}
addUserKnob {22 statusmessage l " status message " T "status =
nuke.thisGroup()\['disable'].getValue()\n\nnuke.message(\"disable knob
status of parent group: \" + str(status))\n" +STARTLINE}
}
Output {
name Output1
selected true
xpos 0
ypos 253
}
end_group
Paul Hudson wrote:
Hi,
If I check the disable knob of a node inside a disabled Group, it is
not True. This makes sense, because the knob itself isn't set.
However, is there a method to check if a node has 'inherited' a
disabled state from its parent(s)?
Thanks,
Paul
------------------------------------------------------------------------
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
Holger Hummel - [email protected]
Celluloid Visual Effects GmbH & Co. KG
Paul-Lincke-Ufer 39/40, 10999 Berlin
phone +49 (0)30 / 54 735 220 - [email protected]
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python