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 mayaUsd.ufe | |
stage = mayaUsd.ufe.getStage("|Kitchen_set|Kitchen_setShape") |
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
''' | |
export camera standalone | |
1. put in `C:/Users/<user>/Documents/maya/scripts` | |
2. open maya and select the camera in outliner | |
3. menu 'custom->Export Selected Camera' | |
''' | |
from maya import cmds | |
from maya import mel | |
def make_kwargs(overrides, **kwargs): |
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
from PySide.QtCore import * | |
from PySide.QtGui import * | |
app = QApplication.instance() | |
def getMainWindow(): | |
for widget in app.topLevelWidgets(): | |
if widget.metaObject().className() == 'Foundry::UI::DockMainWindow': | |
return widget | |
qNuke =getMainWindow() |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
longqi 20/Jan/16 22:42 | |
""" | |
""" | |
default.txt | |
""" | |
""" |