pymel.core.language.OptionVarDict

Inheritance diagram of OptionVarDict

class OptionVarDict

A singleton dictionary-like class for accessing and modifying optionVars.

>>> from pymel.all import *
>>> optionVar['test'] = 'dooder'
>>> optionVar['test']
u'dooder'
>>> if 'numbers' not in env.optionVars:
...     optionVar['numbers'] = [1,24,7]
>>> optionVar['numbers'].appendVar( 9 )
>>> numArray = optionVar.pop('numbers')
>>> print numArray
[1, 24, 7, 9]
>>> optionVar.has_key('numbers') # previous pop removed the key
False
get(key, default=None)
has_key(key)
iteritems()
iterkeys()
itervalues()
keys()
pop(key)
values()

Previous topic

pymel.core.language.MelGlobals

Next topic

pymel.core.language.OptionVarList

Core

Core Modules

Other Modules

This Page