Sets viewport factories for displays as materials or textures. In query mode, return type is based on queried flag.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
materialFactory (mf) | unicode | ||
|
|||
nodeType (nt) | unicode | ||
|
|||
textureFactory (tf) | unicode | ||
|
Derived from mel command maya.cmds.assignViewportFactories
Example:
import pymel.core as pm
# To set the viewport factories for all dgs_material nodes.
#
pm.assignViewportFactories( materialFactory='MentalRayMaterial', textureFactory='MentalRayTexture', nodeType='dgs_material' )