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

Class Script_Knob

  object --+        
           |        
   nuke.Knob --+    
               |    
nuke.String_Knob --+
                   |
                  nuke.Script_Knob
Known Subclasses:

A button which executes a TCL script.

Instance Methods [hide private]
 
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
a new object with type S, a subtype of T
__new__(T, S, ...)
str
command(self)
Get the current command.
None
execute(self)
Execute the command.
None
setCommand(self, cmd)
Set the new command for this knob.
None
setValue(self, cmd)
Set the new command for this knob.
str
value(self)
Get the current command.

Inherited from String_Knob: getText

Inherited from Knob: Class, clearAnimated, clearFlag, critical, debug, enabled, error, fromScript, getDerivative, getIntegral, getKeyIndex, getKeyTime, getNthDerivative, getNumKeys, getValue, getValueAt, hasExpression, isAnimated, isKey, isKeyAt, label, name, node, removeKey, removeKeyAt, setAnimated, setEnabled, setExpression, setFlag, setLabel, setName, setTooltip, setValueAt, setVisible, toScript, tooltip, visible, warning

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__

__new__(T, S, ...)

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

command(self)

 

Get the current command.

Returns: str
The current command as a string, or None if there is no current command.

execute(self)

 

Execute the command.

Returns: None
None.

setCommand(self, cmd)

 

Set the new command for this knob.

Parameters:
  • cmd - String containing a TCL command.
Returns: None
None.

setValue(self, cmd)

 

Set the new command for this knob.

Parameters:
  • cmd - String containing a TCL command.
Returns: None
None.
Overrides: Knob.setValue

value(self)

 

Get the current command.

Returns: str
The current command as a string, or None if there is no current command.
Overrides: Knob.value