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

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

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_Ribbon.py   PipelineConstructionSet(Download)
            # get the incoming data
            # the input nurbs curve
            dataHandle = OM.MDataHandle(dataBlock.inputValue(AM_RibbonsNode.inputCurve))
            curve = OM.MObject(dataHandle.asNurbsCurve())
            # early out if there is no curve data
            if curve.isNull():
                return OM.kUnknownParameter
            # width of the ribbon in centimeters
            dataHandle = OM.MDataHandle(dataBlock.inputValue(AM_RibbonsNode.inputWidth))
            width = dataHandle.asDouble()
            # number of divisions along the ribbon
            dataHandle = OM.MDataHandle(dataBlock.inputValue(AM_RibbonsNode.inputDivisions))
            divisions = dataHandle.asInt()
            # the ribbon must have at least one division
                dataHandle.setClean()
            # amount of taper at the far end of the ribbon
            dataHandle = OM.MDataHandle(dataBlock.inputValue(AM_RibbonsNode.inputTaper))
            taper = dataHandle.asDouble()
            # amount of twisting of the ribbon at its base
            dataHandle = OM.MDataHandle(dataBlock.inputValue(AM_RibbonsNode.inputTwistBase))

src/p/i/PipelineConstructionSet-HEAD/maya/plugins/2014/win64/AM_ExposeTransform.py   PipelineConstructionSet(Download)
            # get the incoming data
            # rotation order for Euler output
            dataHandle = OM.MDataHandle(dataBlock.inputValue(AM_ExposeTransformNode.rotateOrder))
            eRotateOrder = dataHandle.asShort()
            # should the incoming axes be normalized for computing dot products?
            dataHandle = OM.MDataHandle(dataBlock.inputValue(AM_ExposeTransformNode.normalize))
            bNormalizeInputAxes = dataHandle.asBool()
            # axis on the object for computing dot product and angle
            dataHandle = OM.MDataHandle(dataBlock.inputValue(AM_ExposeTransformNode.objectAxis))
                vObjectAxis.normalize()
            # axis on the reference object for computing dot product and angle
            dataHandle = OM.MDataHandle(dataBlock.inputValue(AM_ExposeTransformNode.referenceAxis))
            vReferenceAxis = OM.MVector(dataHandle.asVector())
            if bNormalizeInputAxes:
                vReferenceAxis.normalize()
            # worldMatrix of the object
            dataHandle = OM.MDataHandle(dataBlock.inputValue(AM_ExposeTransformNode.objectMatrix))

src/o/p/openPSD-HEAD/plugins/src/angleReader.py   openPSD(Download)
 
 
        baseMatrix_DH = om.MDataHandle()
        baseMatrix_DH = dataBlock.inputValue(angleReader.baseMatrix_mAttr)
        base_M = baseMatrix_DH.asMatrix()
 
        driverMatrix_DH = om.MDataHandle()
        driver_M = driverMatrix_DH.asMatrix()
 
        rotateAxisX_DH = om.MDataHandle()
        rotateAxisX_DH = dataBlock.inputValue(angleReader.rotateAxisX_nAttr)
        rotateAxisY_DH = om.MDataHandle()
        rotateAxisY_DH = dataBlock.inputValue(angleReader.rotateAxisY_nAttr)
        rotateAxisZ_DH = om.MDataHandle()