Skip to content

Instantly share code, notes, and snippets.

View zclongpop123's full-sized avatar

Changlong.Zang zclongpop123

  • Beijing.China
View GitHub Profile
@zclongpop123
zclongpop123 / export_camera_standalone.py
Created January 27, 2022 15:11 — forked from jagt/export_camera_standalone.py
Standalone script for exporting camera animation w/ custom attributes.
'''
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):
@zclongpop123
zclongpop123 / get_nuke_window.py
Created January 19, 2020 05:28 — forked from paulwinex/get_nuke_window.py
Get Main Nuke window
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()
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
longqi 20/Jan/16 22:42
"""
"""
default.txt
"""
"""