Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(11)  |  Call(11)  |  Derive(0)  |  Import(0)

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_ExposeTransform.py   PipelineConstructionSet(Download)
    def nodeInitializer(cls):
        # input attributes
        # rotation order for Euler output
        eAttr = OM.MFnEnumAttribute()
        cls.rotateOrder = eAttr.create(cls.kRotateOrderAttrLongName, cls.kRotateOrderAttrName, 0)

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_ShoulderConstraint.py   PipelineConstructionSet(Download)
        # ----------------------------------------------------------------
        # the constrained node's rotateOrder attribute
        eAttr = OM.MFnEnumAttribute()
        cls.rotateOrder = eAttr.create(cls.kRotateOrderAttrLongName, cls.kRotateOrderAttrName, 0)
        eAttr.addField('xyz', 0)

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_HipConstraint.py   PipelineConstructionSet(Download)
        # ----------------------------------------------------------------
        # the constrained node's rotateOrder attribute
        eAttr = OM.MFnEnumAttribute()
        cls.rotateOrder = eAttr.create(cls.kRotateOrderAttrLongName, cls.kRotateOrderAttrName, 0)
        eAttr.addField('xyz', 0)

src/o/p/openPSD-HEAD/plugins/src/angleReader.py   openPSD(Download)
def nodeInit():
    nAttr = om.MFnNumericAttribute()
    mAttr = om.MFnMatrixAttribute()
    uAttr = om.MFnUnitAttribute()
    eAttr = om.MFnEnumAttribute()

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_Ribbon.py   PipelineConstructionSet(Download)
        numAttr.setKeyable(True)
        # pin location for the default uv layout
        eAttr = OM.MFnEnumAttribute()
        cls.inputUVPin = eAttr.create(AM_RibbonsNode.kInputUVPinAttrLongName, AM_RibbonsNode.kInputUVPinAttrName, 0)
        eAttr.addField('Top', 0)

src/m/a/mayaseed-HEAD/nodes/ms_render_settings.py   mayaseed(Download)
 
    # color space
    color_space_enumAttr = OpenMaya.MFnEnumAttribute()
    ms_renderSettings.color_space = color_space_enumAttr.create("color_space", "col_space")
    color_space_enumAttr.addField("sRGB", 0)
    # config ---------------------------------------------------
    # sampler
    sampler_enumAttr = OpenMaya.MFnEnumAttribute()
    ms_renderSettings.sampler = sampler_enumAttr.create("sampler", "sampler", 1)
    sampler_enumAttr.addField("Adaptive", 0)

src/m/a/mayaseed-HEAD/nodes/ms_appleseed_material.py   mayaseed(Download)
 
    # displacement mode
    displacement_mode_enumAttr = OpenMaya.MFnEnumAttribute()
    appleseed_material.displacement_mode = displacement_mode_enumAttr.create("displacement_mode", "displacement_mode")
    displacement_mode_enumAttr.addField("bump", 0)
    displacement_mode_enumAttr.addField("normal", 1)
    appleseed_material.addAttribute( appleseed_material.displacement_mode )
 
    # normal map up
    normal_map_up_enumAttr = OpenMaya.MFnEnumAttribute()

src/m/a/mayaseed-HEAD/nodes/ms_physical_environment.py   mayaseed(Download)
def ms_physical_environment_nodeInitializer():
    # environment type
    model_enumAttr = OpenMaya.MFnEnumAttribute()
    ms_physical_environment.model = model_enumAttr.create("model", "model")
    model_enumAttr.addField("Hosek", 0)

src/m/a/mayaseed-HEAD/nodes/ms_environment.py   mayaseed(Download)
def ms_environment_nodeInitializer():
    # environment type
    model_enumAttr = OpenMaya.MFnEnumAttribute()
    ms_environment.model = model_enumAttr.create("model", "model")
    model_enumAttr.addField("Constant Environment", 0)