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 math; import itertools as i; from itertools import chain as j | |
import maya.cmds as __ | |
__._ = lambda _: chr(int(math.sqrt(_)+140//3)) | |
__.__ = __.setAttr, __.listAttr, __.ls, __.aliasAttr | |
__._._ = 2601, 4900, 4900, 4624, 3481, 2704, 5041, 4900, 3025, 361, 3844, 3481, 2601, 4761 | |
___ = __.__[2](dag=1) | |
____ = list({k: 0 for k in (__.__[1](___))}) | |
____ = tuple(j.from_iterable(zip(i.count(), ____))) | |
_ = lambda _______: __.__[0](f"{_______}.aal", ____, type=''.join(map(__._, __._._))) | |
_.__ = lambda ______________: __.__[-1]("eispoo", f"{______________}.{__.__[1](______________, scalar=1)[0]}") |
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 json | |
from openpype.pipeline import load | |
from openpype.style import load_stylesheet | |
class ShowContextData(load.LoaderPlugin): | |
"""Debug context data of representation""" | |
families = ["*"] |
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
{ | |
"asset": "ASSET_NAME", | |
"comment": "", | |
"deadline_publish_job_id": "651ea743d5ea807051ce62e1", | |
"fps": 25.0, | |
"frameEnd": 1250, | |
"frameStart": 1001, | |
"instances": [ | |
{ | |
"asset": "ASSET_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
from maya import cmds | |
import mayaUsd.ufe | |
from pxr import Usd, UsdShade | |
def pairwise(iterable): | |
it = iter(iterable) | |
return zip(it, it) | |
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 maya import cmds | |
import mayaUsd.ufe | |
from pxr import Usd, UsdShade | |
from collections import defaultdict | |
def pairwise(iterable): | |
it = iter(iterable) | |
return zip(it, it) |
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 logging | |
import mayaUsd.lib as mayaUsdLib | |
from maya import cmds | |
import maya.api.OpenMaya as OpenMaya | |
def create_cbid_attr(default_value): | |
default = OpenMaya.MFnStringData().create(default_value) | |
return OpenMaya.MFnTypedAttribute().create("cbId", |
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 openpype.pipeline.thumbnail import get_thumbnail_binary | |
from openpype.client import get_thumbnail_id_from_source, get_thumbnail | |
def get_entity_thumbnail(project_name, entity_id, entity_type): | |
thumbnail_id = get_thumbnail_id_from_source(project_name, entity_type, entity_id) | |
if not thumbnail_id: | |
return | |
thumbnail_entity = get_thumbnail(project_name, thumbnail_id, entity_type, entity_id) | |
if not thumbnail_entity: |
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 hou | |
import json | |
class Attachments: | |
user_data_key = "attachednodes" | |
@staticmethod | |
def attach_node(node, node_to_follow): |
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 pxr import UsdGeom, Usd | |
node = hou.pwd() | |
stage = node.editableStage() | |
path = "/cube" | |
prim = stage.GetPrimAtPath(path) | |
start = node.evalParm("start") | |
end = node.evalParm("end") |
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
class ExtractorMixin: | |
"""OpenPype Extractor helper methods""" | |
def add_representation(self, instance, name, | |
files, staging_dir, ext=None, | |
output_name=None, | |
frame_start=None, | |
frame_end=None, |