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

Class String_Knob

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

A knob which holds a string value. Appears as a text entry field in a Node panel.

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
getText(self, oc)
Get the value of this knob as a string.
str
getValue(self, oc)
Get the value of this knob as a string.
None
setText(self, val, view='default')
Set value of knob.
None
setValue(self, val, view='default')
Set value of knob.
None
splitView(self, view)
Split the view away from the current knob value.
None
unsplitView(self, view)
Unsplit the view so that it shares a value with other views.
str
value(self, oc)
Get the value of this knob as a string.

Inherited from Knob: Class, clearAnimated, clearFlag, critical, debug, enabled, error, fromScript, fullyQualifiedName, getDerivative, getFlag, getIntegral, getKeyIndex, getKeyTime, getNthDerivative, getNumKeys, 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__

getText(self, oc)

 

Get the value of this knob as a string.

Parameters:
  • oc - Optional parameter specifying the output context.
Returns: str
String value.

getValue(self, oc)

 

Get the value of this knob as a string.

Parameters:
  • oc - Optional parameter specifying the output context.
Returns: str
String value.
Overrides: Knob.getValue

setText(self, val, view='default')

 

Set value of knob.

Parameters:
  • val - The new value.
  • view - Optional parameter specifying which view to set the value for. If omitted, the value will be set for the default view.
Returns: None
None

setValue(self, val, view='default')

 

Set value of knob.

Parameters:
  • val - The new value.
  • view - Optional parameter specifying which view to set the value for. If omitted, the value will be set for the default view.
Returns: None
None
Overrides: Knob.setValue

splitView(self, view)

 

Split the view away from the current knob value.

Parameters:
  • view - Optional view. Default is current view.
Returns: None
None.

unsplitView(self, view)

 

Unsplit the view so that it shares a value with other views.

Parameters:
  • view - Optional view. Default is current view.
Returns: None
None.

value(self, oc)

 

Get the value of this knob as a string.

Parameters:
  • oc - Optional parameter specifying the output context.
Returns: str
String value.
Overrides: Knob.value