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

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

src/p/b/pbrtMayaPy-HEAD/PBRT/ExportModules/Camera.py   pbrtMayaPy(Download)
        LookAt and then the appropriate camera.
        """
        if OpenMaya.MGlobal.isYAxisUp():
            self.addToOutput ( 'Scale -1 1 1' )
 

src/p/b/pbrtMayaPy-HEAD/PBRT/ExportModules/ExportModule.py   pbrtMayaPy(Download)
        """
 
        if OpenMaya.MGlobal.isYAxisUp():
            tMatrix = OpenMaya.MTransformationMatrix( matrix )
            tMatrix.rotateBy( OpenMaya.MEulerRotation(math.radians(90), 0, 0), OpenMaya.MSpace.kTransform )