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
""" | |
Select the geometry to make the renderlayers from. | |
Will find all the materials (lambert), make a renderlayer per material only showing that material. | |
""" | |
import traceback | |
import pymel.core | |
selection = pymel.core.ls(selection=True) |
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 pyblish_lite | |
from pyblish_lite import mock | |
import pyblish.api | |
for plugin in mock.plugins: | |
pyblish.api.register_plugin(plugin) | |
def instance_toggled(instance, new_value, old_value): |
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
# PyFileMaker - Integrating FileMaker and Python | |
# (c) 2014-2016 Marcin Kawa, [email protected] | |
# (c) 2006-2008 Klokan Petr Pridal, [email protected] | |
# (c) 2002-2006 Pieter Claerhout, [email protected] | |
# | |
# http://code.google.com/p/pyfilemaker/ | |
# http://www.yellowduck.be/filemaker/ | |
# Import the main modules | |
import string |
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 * | |
from shiboken import wrapInstance | |
from maya import cmds | |
from maya import mel | |
from maya import OpenMayaUI as omui | |
from maya.app.general.mayaMixin import MayaQWidgetBaseMixin, MayaQWidgetDockableMixin | |
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
[python {sorted(hiero.ui.activeSequence().trackItemAt(hiero.ui.currentViewer().time()).tags(), key=lambda item: item.name())}] |
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 hiero | |
import ftrack | |
shots_data = [] | |
for seq in hiero.ui.activeSequence().project().sequences(): | |
for vid in seq.videoTracks(): | |
for item in vid.items(): | |
for tag in item.tags(): | |
data = tag.metadata().dict() |
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
docker run -v /c/Users/admin/linux-env:/shared -it ubuntu /bin/bash |
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
dependencies: | |
- python=2.7 | |
- pip: | |
- pytest | |
- git: | |
- https://github.com/tokejepsen/file-link.git: | |
- python -c "import os;import subprocess;path = os.path.join(os.environ[\"CONDA_ENVIRONMENT_REPOSITORIES\"], \"file-link\");os.environ[\"PYTHONPATH\"] += os.pathsep + path;subprocess.call(\"pytest\", cwd=path)" | |
name: filelink-environment |
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 os | |
import socket | |
import traceback | |
def send(cmd, port): | |
host = '127.0.0.1' | |
# we expect a result no matter if it errors, so we keep trying until we |
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
""" | |
- Keyword arguments can be None, so need something more unique to compare | |
against. | |
- There is the possibility of cache the results of each component for quicker | |
evaluation. | |
""" | |
import inspect | |
import functools | |
from pyblish import api |