Package nukescripts :: Module applymaterial :: Class ObjectNameChooserDialog
[hide private]
[frames] | no frames]

Class ObjectNameChooserDialog

source code

object --+                
 ??.Widget --+            
  ??.Container --+        
         ??.Dialog --+    
    panels.PythonPanel --+

A dialog box with a SceneView_Knob for choosing from a tree of names.

The easiest way to use this is via the chooseObjectName function from this
module, e.g.:

  chooseObjectName(["/root/foo", "/root/bar", "/root/bar/baz"])

This will create and display the dialog as a modal popup and give you the
selected name, or None if cancel was pressed.

Instance Methods [hide private]
__init__(self, names)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
Get the name selected in the SceneView_Knob.
source code

Inherited from panels.PythonPanel: accept, addCallback, addKnob, addToPane, cancel, create, finishModalDialog, hide, knobChanged, knobChangedCallback, knobs, ok, readKnobs, reject, removeCallback, removeKnob, show, showModal, showModalDialog, writeKnobs

Inherited from panels.PythonPanel (private): _makeOkCancelButton

Inherited from unreachable.Dialog: __new__

Inherited from unreachable.Container: add

Inherited from unreachable.Widget: close, destroy, height, isEnabled, isValid, setEnabled, setMaximumSize, setMinimumSize, setTooltip, setVisible, tooltip, width

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__(self, names)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)