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
================== | |
>> oiiotool --buildinfo | |
Invalid option "--buildinfo" | |
oiiotool -- simple image processing operations | |
OpenImageIO 2.3.10 http://www.openimageio.org | |
Usage: oiiotool [filename|command]... | |
Important usage tips: | |
* The oiiotool command line is processed in order, LEFT to RIGHT. |
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
"""Set selected Resolvetimeline name versions to project name version.""" | |
from typing import Optional | |
import re | |
import DaVinciResolveScript as bmd | |
VERSION_REGEX = re.compile(r'_v(\d+)') | |
resolve = bmd.scriptapp('Resolve') |
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 typing import Tuple, Union, Optional | |
def get_tool_resolution( | |
tool, | |
output: Union[str, int, None] = None, | |
frame: Optional[int] = None, | |
allow_fast_dod_query=True | |
) -> Tuple[int, int]: | |
"""Return tool output resolution. |
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
""" | |
Example on using AYON's generative links to query whether the loaded products | |
in current workfile happen to have input products that some of the products | |
were also generated with and see if those versions match. | |
For example: You have a loaded model v002 and loaded look v001, however | |
that look version was created using model v001. You may want to identify that. | |
This script will print out a message for each product that has a version in the | |
inputs where another version of that input product is loaded in the scene. |
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 ayon_core.pipeline import load, get_current_host_name | |
class TestHostSpecificLoad(load.LoaderPlugin): | |
hosts = ["bla"] | |
product_types = {"*"} | |
representations = {"*"} | |
label = "Test Host Specific Load" |
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 typing import Tuple, List | |
from pathlib import Path | |
import os | |
import platform | |
# Get plugin extensions maya can load per platform | |
PLUGIN_EXTENSIONS_BY_PLATFORM = { | |
"windows": {".mll", ".nll.dll"}, | |
"mac": {".bundle"}, | |
"linux": {".so"}, |
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 typing import List, Iterable | |
import itertools | |
import contextlib | |
@contextlib.contextmanager | |
def comp_lock_and_undo_chunk( | |
comp, | |
undo_queue_name="Script CMD", | |
keep_undo=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
"""Fix unlinked/unmanaged loaders in Fusion to get managed by AYON as intended.""" | |
from pathlib import Path | |
from typing import List | |
import time | |
import logging | |
import ayon_api | |
from ayon_core.pipeline import get_current_project_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
# Maya Create rsMeshParameters per node in selection and add node name as suffix label | |
import contextlib | |
from maya import cmds, mel | |
@contextlib.contextmanager | |
def maintained_selection(): | |
previous_selection = cmds.ls(selection=True) | |
try: | |
yield |
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
"""This plug-in will do some heavy logging of all reads and changes to any | |
instance.data or context.data by pyblish plug-ins and will generate a JSON | |
This requires typing-extensions and observatory library and will in the worst | |
possible manner add those to sys.path to make it work. This is a quick hack. | |
Dependencies: | |
observatory: https://github.com/sharpencrag/observatory | |
typing_extensions: https://github.com/python/typing_extensions |
NewerOlder