cgmMetaFactory


Class handler to easily get  a node with some special handling for specific object types. Currently directs to cgmNode, cgmObject, cgmOptionVar, cgmObjectSet

from cgm.core import cgm_Meta as cgmM
multDivInstance = cgmM.cgmMetaFactory(name = 'Math', nodeType = 'multiplyDivide')
#Returns a cgmNode instance of a multiply divide node named 'Math'

objectSetInstance = cgmM.cgmMetaFactory(name = 'oSet', nodeType = 'objectSet',qssState = True)
#Returns a cgmObjectSet instance of objectSet 'oSet' that is a qss

nullInstance = cgmM.cgmMetaFactory(name = 'Null', nodeType = 'transform')
#Returns a cgmObject instance of objectSet 'Null'

optionVarInstance = cgmM.cgmMetaFactory(name = 'cgmVar_test', nodeType = 'optionVar',value = 'cat')
#Returns a cgmOptionVar instance of objectSet 'cgmVar_test' of 'string' type with value of 'cat'
#Note - optionVars are not traditional maya nodes so you won't see anything in the user interface to easily see them