An early prototype of [Abstract Factory RFC57][1].
Usage
$ dash thedeal/ben/rig
import json | |
import types | |
import inspect | |
# The core Pyblish package is mocked. | |
# These are all relevant members to processing. | |
pyblish = types.ModuleType("pyblish") | |
pyblish.api = types.ModuleType("api") | |
pyblish.plugin = types.ModuleType("plugin") | |
pyblish.plugin.process = None # Implemented below |
import QtQuick 2.0 | |
/*! | |
An alternative implementation, | |
this one causes a binding loop for some reason. | |
*/ | |
Rectangle { | |
width: 500 | |
height: 300 |
On Windows systems using Autodesk Maya, the text input field of the Script Editor doesn't regain focus after having restored focus to the main window. This event handler explicitly restores focus, if it turns out to have been the last active panel at the time of leaving the application.
Place the full contents of the script below into your userSetup.py
and never again lose focus.
Same as QML Reference Manager except with data being passed from Python to QML, as a "context property".
Context properties are inserted into the global namespace of QML, the name ("myModel") is directly accessible from any QML file, and the object can be any Python object.
This gist illustrates how two processes can exchange information via subprocess.Popen
.
Integrate an externally running user interface, potentially written in another language. For example, a GUI written in PyQt5 and Python 3 running inside of Autodesk Maya (Python 2.7, PySide).
Each imported pointcache has an origin
from which the original asset is referenced.
Using this, the original reference is looked up and from it, it's look development files imported and re-built.
"""Full Example | |
From http://forums.pyblish.com/t/learning-pyblish-by-example/108/3 | |
Usage: | |
Copy and run this entire file in your Maya Script Editor | |
""" | |
import os |