Package nuke :: Class PanelNode
[hide private]
[frames] | no frames]

Class PanelNode

object --+
         |
        nuke.PanelNode

PanelNode

Instance Methods [hide private]
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__str__(x)
str(x)
None
addKnob(self, k)
Add knob k to this node or panel.
 
createWidget(...)
Create the widget for the panel
dict
knobs(self)
Get a dictionary of (name, knob) pairs for all knobs in this node.
None
readKnobs(self, s)
Read the knobs from a string (TCL syntax).
None
removeKnob(self, k)
Remove knob k from this node or panel.
String in .nk form
writeKnobs(self, i)
Return a tcl list.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__str__(x)
(Informal representation operator)

 

str(x)

Overrides: object.__str__

addKnob(self, k)

 

Add knob k to this node or panel.

Parameters:
  • k - Knob.
Returns: None
None.

knobs(self)

 

Get a dictionary of (name, knob) pairs for all knobs in this node.

For example:

>>> b = nuke.nodes.Blur()
>>> b.knobs()
Returns: dict
Dictionary of all knobs.

Note that this doesn't follow the links for Link_Knobs

readKnobs(self, s)

 

Read the knobs from a string (TCL syntax).

Parameters:
  • s - A string.
Returns: None
None.

removeKnob(self, k)

 

Remove knob k from this node or panel. Throws a ValueError exception if k is not found on the node.

Parameters:
  • k - Knob.
Returns: None
None.

writeKnobs(self, i)

 
Return a tcl list. If TO_SCRIPT | TO_VALUE is not on, this is a simple list
of knob names. If it is on, it is an alternating list of knob names
and the output of to_script().

Flags can be any of these or'd together:
- nuke.TO_SCRIPT produces to_script(0) values
- nuke.TO_VALUE produces to_script(context) values
- nuke.WRITE_NON_DEFAULT_ONLY skips knobs with not_default() false
- nuke.WRITE_USER_KNOB_DEFS writes addUserKnob commands for user knobs
- nuke.WRITE_ALL writes normally invisible knobs like name, xpos, ypos

@param i: The set of flags or'd together. Default is TO_SCRIPT | TO_VALUE.
@return: String in .nk form.

Returns: String in .nk form