pymel.core.language.OptionVarDict

digraph inheritanceeaabe65d2a {
rankdir=TB;
ranksep=0.15;
nodesep=0.15;
size="8.0, 12.0";
  "OptionVarDict" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="#pymel.core.language.OptionVarDict",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
}

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)
keys()
pop(key)

Previous topic

pymel.core.language.MelGlobals

Next topic

pymel.core.language.OptionVarList

Core

Core Modules

Other Modules

This Page