This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setUpAxis "y"; | |
| viewSet -p -an 0 |persp|perspShape; | |
| viewSet -f -an 0 |front|frontShape; | |
| viewSet -t -an 0 |top|topShape; | |
| viewSet -s -an 0 |side|sideShape; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import maya.cmds as cmds | |
| import maya.OpenMaya as OpenMaya | |
| import maya.OpenMayaUI as OpenMayaUI | |
| view = OpenMayaUI.M3dView.active3dView() | |
| cam = OpenMaya.MDagPath() | |
| view.getCamera(cam) | |
| camPath = cam.fullPathName() | |
| print camPath |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vector $pos = `pointPosition particle1.pt[0]`; | |
| joint6.tx = $pos.x; | |
| joint6.ty = $pos.y; | |
| joint6.tz = $pos.z; |