Still in experiment stage, but I think the idea is becoming a little more solid now, good for discussion. And maybe this could develope as a vanilla config for Avalon.
- Provide a basic description of Avalon-Config package
- Git comparable
| import pyblish.api | |
| class CollectTestCase(pyblish.api.ContextPlugin): | |
| """Inject the currently logged on user into the Context""" | |
| order = pyblish.api.CollectorOrder | |
| label = "Test" | |
| def process(self, context): |
| // 抓取選取範圍 | |
| string $selects[] = `ls -sl`; | |
| // 取得選取範圍第一個物件的參數值 | |
| int $status = `getAttr ($selects[0] + ".visibility")`; | |
| // 將參數值(數字 1) 相減並取絕對值以得相反值然後設定回去 | |
| setAttr ($selects[0] + ".visibility") `abs($status - 1)`; |
| """ | |
| This is what you need to do in order to get a qt window to dock next to maya channel box, | |
| In all maya versions, including 2017 with PySide2 | |
| """ | |
| __author__ = "[email protected]" | |
| import sys | |
| import os | |
| import logging | |
| import xml.etree.ElementTree as xml |
| from functools import wraps | |
| from maya import cmds | |
| def undo(func): | |
| """ Puts the wrapped `func` into a single Maya Undo action, then | |
| undoes it when the function enters the finally: block """ | |
| @wraps(func) | |
| def _undofunc(*args, **kwargs): | |
| try: | |
| # start an undo chunk |
| #!/bin/bash | |
| #Make sure we’re running with root permissions. | |
| if [ `whoami` != root ]; then | |
| echo Please run this script using sudo | |
| echo Just type “sudo !!” | |
| exit | |
| fi | |
| #Check for 64-bit arch | |
| if [uname -m != x86_64]; then |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
| import copy | |
| try: | |
| basestring | |
| except NameError: | |
| basestring = str | |
| """Usage Example |