Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1068 from pypeclub/feature/656-optionally-add-tas…
Browse files Browse the repository at this point in the history
…k-to-subset-name

Optionally add task to subset name
  • Loading branch information
mkolar authored Mar 3, 2021
2 parents d64083d + a8aec32 commit af1c39d
Show file tree
Hide file tree
Showing 63 changed files with 670 additions and 171 deletions.
6 changes: 6 additions & 0 deletions pype/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
from . import resources

from .plugin import (
PypeCreatorMixin,
Creator,

Extractor,

ValidatePipelineOrder,
Expand Down Expand Up @@ -86,6 +89,9 @@
# Resources
"resources",

# Pype creator mixin
"PypeCreatorMixin",
"Creator",
# plugin classes
"Extractor",
# ordering
Expand Down
4 changes: 2 additions & 2 deletions pype/hosts/aftereffects/plugins/create/create_render.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from avalon import api
import pype.api
from avalon.vendor import Qt
from avalon import aftereffects

Expand All @@ -7,7 +7,7 @@
log = logging.getLogger(__name__)


class CreateRender(api.Creator):
class CreateRender(pype.api.Creator):
"""Render folder for publish."""

name = "renderDefault"
Expand Down
6 changes: 6 additions & 0 deletions pype/hosts/blender/api/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import bpy

from avalon import api
import avalon.blender
from pype.api import PypeCreatorMixin

VALID_EXTENSIONS = [".blend", ".json"]

Expand Down Expand Up @@ -100,6 +102,10 @@ def get_local_collection_with_name(name):
return None


class Creator(PypeCreatorMixin, avalon.blender.Creator):
pass


class AssetLoader(api.Loader):
"""A basic AssetLoader for Blender
Expand Down
4 changes: 2 additions & 2 deletions pype/hosts/blender/plugins/create/create_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import bpy

from avalon import api
from avalon.blender import Creator, lib
import pype.hosts.blender.api.plugin
from avalon.blender import lib


class CreateAction(Creator):
class CreateAction(pype.hosts.blender.api.plugin.Creator):
"""Action output for character rigs"""

name = "actionMain"
Expand Down
2 changes: 1 addition & 1 deletion pype/hosts/blender/plugins/create/create_animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import pype.hosts.blender.api.plugin


class CreateAnimation(blender.Creator):
class CreateAnimation(pype.hosts.blender.api.plugin.Creator):
"""Animation output for character rigs"""

name = "animationMain"
Expand Down
4 changes: 2 additions & 2 deletions pype/hosts/blender/plugins/create/create_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import bpy

from avalon import api
from avalon.blender import Creator, lib
from avalon.blender import lib
import pype.hosts.blender.api.plugin


class CreateCamera(Creator):
class CreateCamera(pype.hosts.blender.api.plugin.Creator):
"""Polygonal static geometry"""

name = "cameraMain"
Expand Down
4 changes: 2 additions & 2 deletions pype/hosts/blender/plugins/create/create_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import bpy

from avalon import api
from avalon.blender import Creator, lib
from avalon.blender import lib
import pype.hosts.blender.api.plugin


class CreateLayout(Creator):
class CreateLayout(pype.hosts.blender.api.plugin.Creator):
"""Layout output for character rigs"""

name = "layoutMain"
Expand Down
4 changes: 2 additions & 2 deletions pype/hosts/blender/plugins/create/create_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import bpy

from avalon import api
from avalon.blender import Creator, lib
from avalon.blender import lib
import pype.hosts.blender.api.plugin


class CreateModel(Creator):
class CreateModel(pype.hosts.blender.api.plugin.Creator):
"""Polygonal static geometry"""

name = "modelMain"
Expand Down
4 changes: 2 additions & 2 deletions pype/hosts/blender/plugins/create/create_rig.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import bpy

from avalon import api
from avalon.blender import Creator, lib
from avalon.blender import lib
import pype.hosts.blender.api.plugin


class CreateRig(Creator):
class CreateRig(pype.hosts.blender.api.plugin.Creator):
"""Artist-friendly rig with controls to direct motion"""

name = "rigMain"
Expand Down
3 changes: 2 additions & 1 deletion pype/hosts/blender/plugins/create/create_setdress.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from avalon import api, blender
import pype.hosts.blender.api.plugin

class CreateSetDress(blender.Creator):

class CreateSetDress(pype.hosts.blender.api.plugin.Creator):
"""A grouped package of loaded content"""

name = "setdressMain"
Expand Down
4 changes: 2 additions & 2 deletions pype/hosts/fusion/plugins/create/create_exr_saver.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import os

import avalon.api
import pype.api
from avalon import fusion


class CreateOpenEXRSaver(avalon.api.Creator):
class CreateOpenEXRSaver(pype.api.Creator):

name = "openexrDefault"
label = "Create OpenEXR Saver"
Expand Down
6 changes: 6 additions & 0 deletions pype/hosts/harmony/api/plugin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from avalon import harmony
from pype.api import PypeCreatorMixin


class Creator(PypeCreatorMixin, harmony.Creator):
pass
3 changes: 2 additions & 1 deletion pype/hosts/harmony/plugins/create/create_farm_render.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# -*- coding: utf-8 -*-
"""Create Composite node for render on farm."""
from avalon import harmony
from pype.hosts.harmony.api import plugin


class CreateFarmRender(harmony.Creator):
class CreateFarmRender(plugin.Creator):
"""Composite node for publishing renders."""

name = "renderDefault"
Expand Down
3 changes: 2 additions & 1 deletion pype/hosts/harmony/plugins/create/create_render.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# -*- coding: utf-8 -*-
"""Create render node."""
from avalon import harmony
from pype.hosts.harmony.api import plugin


class CreateRender(harmony.Creator):
class CreateRender(plugin.Creator):
"""Composite node for publishing renders."""

name = "renderDefault"
Expand Down
4 changes: 2 additions & 2 deletions pype/hosts/harmony/plugins/create/create_template.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from avalon import harmony
from pype.hosts.harmony.api import plugin


class CreateTemplate(harmony.Creator):
class CreateTemplate(plugin.Creator):
"""Composite node for publishing to templates."""

name = "templateDefault"
Expand Down
2 changes: 1 addition & 1 deletion pype/hosts/hiero/api/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ def load(self):
return track_item


class Creator(avalon.Creator):
class Creator(pype.Creator):
"""Creator class wrapper
"""
clip_color = "Purple"
Expand Down
6 changes: 6 additions & 0 deletions pype/hosts/houdini/api/plugin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from avalon import houdini
from pype.api import PypeCreatorMixin


class Creator(PypeCreatorMixin, houdini.Creator):
pass
4 changes: 2 additions & 2 deletions pype/hosts/houdini/plugins/create/create_alembic_camera.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from avalon import houdini
from pype.hosts.houdini.api import plugin


class CreateAlembicCamera(houdini.Creator):
class CreateAlembicCamera(plugin.Creator):
"""Single baked camera from Alembic ROP"""

name = "camera"
Expand Down
4 changes: 2 additions & 2 deletions pype/hosts/houdini/plugins/create/create_pointcache.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from avalon import houdini
from pype.hosts.houdini.api import plugin


class CreatePointCache(houdini.Creator):
class CreatePointCache(plugin.Creator):
"""Alembic ROP to pointcache"""

name = "pointcache"
Expand Down
4 changes: 2 additions & 2 deletions pype/hosts/houdini/plugins/create/create_vbd_cache.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from avalon import houdini
from pype.hosts.houdini.api import plugin


class CreateVDBCache(houdini.Creator):
class CreateVDBCache(plugin.Creator):
"""OpenVDB from Geometry ROP"""

name = "vbdcache"
Expand Down
4 changes: 2 additions & 2 deletions pype/hosts/maya/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def on_open(_):
"""On scene open let's assume the containers have changed."""

from avalon.vendor.Qt import QtWidgets
from ...widgets import popup
from pype.widgets import popup

cmds.evalDeferred(
"from pype.hosts.maya.api import lib;"
Expand Down Expand Up @@ -223,4 +223,4 @@ def on_task_changed(*args):
lib.show_message(
"Context was changed",
("Context was changed to {}".format(avalon.Session["AVALON_ASSET"])),
)
)
6 changes: 6 additions & 0 deletions pype/hosts/maya/api/plugin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from avalon import api
from avalon.vendor import qargparse
import avalon.maya
from pype.api import PypeCreatorMixin


def get_reference_node_parents(ref):
Expand All @@ -26,6 +28,10 @@ def get_reference_node_parents(ref):
return parents


class Creator(PypeCreatorMixin, avalon.maya.Creator):
pass


class ReferenceLoader(api.Loader):
"""A basic ReferenceLoader for Maya
Expand Down
8 changes: 5 additions & 3 deletions pype/hosts/maya/plugins/create/create_animation.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import avalon.maya
from pype.hosts.maya.api import lib
from pype.hosts.maya.api import (
lib,
plugin
)


class CreateAnimation(avalon.maya.Creator):
class CreateAnimation(plugin.Creator):
"""Animation output for character rigs"""

name = "animationDefault"
Expand Down
8 changes: 5 additions & 3 deletions pype/hosts/maya/plugins/create/create_ass.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
from collections import OrderedDict

import avalon.maya
from pype.hosts.maya.api import lib
from pype.hosts.maya.api import (
lib,
plugin
)

from maya import cmds


class CreateAss(avalon.maya.Creator):
class CreateAss(plugin.Creator):
"""Arnold Archive"""

name = "ass"
Expand Down
4 changes: 2 additions & 2 deletions pype/hosts/maya/plugins/create/create_assembly.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import avalon.maya
from pype.hosts.maya.api import plugin


class CreateAssembly(avalon.maya.Creator):
class CreateAssembly(plugin.Creator):
"""A grouped package of loaded content"""

name = "assembly"
Expand Down
10 changes: 6 additions & 4 deletions pype/hosts/maya/plugins/create/create_camera.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import avalon.maya
from pype.hosts.maya.api import lib
from pype.hosts.maya.api import (
lib,
plugin
)


class CreateCamera(avalon.maya.Creator):
class CreateCamera(plugin.Creator):
"""Single baked camera"""

name = "cameraMain"
Expand All @@ -24,7 +26,7 @@ def __init__(self, *args, **kwargs):
self.data['bakeToWorldSpace'] = True


class CreateCameraRig(avalon.maya.Creator):
class CreateCameraRig(plugin.Creator):
"""Complex hierarchy with camera."""

name = "camerarigMain"
Expand Down
4 changes: 2 additions & 2 deletions pype/hosts/maya/plugins/create/create_layout.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import avalon.maya
from pype.hosts.maya.api import plugin


class CreateLayout(avalon.maya.Creator):
class CreateLayout(plugin.Creator):
"""A grouped package of loaded content"""

name = "layoutMain"
Expand Down
8 changes: 5 additions & 3 deletions pype/hosts/maya/plugins/create/create_look.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import avalon.maya
from pype.hosts.maya.api import lib
from pype.hosts.maya.api import (
lib,
plugin
)


class CreateLook(avalon.maya.Creator):
class CreateLook(plugin.Creator):
"""Shader connections defining shape look"""

name = "look"
Expand Down
4 changes: 2 additions & 2 deletions pype/hosts/maya/plugins/create/create_mayaascii.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import avalon.maya
from pype.hosts.maya.api import plugin


class CreateMayaAscii(avalon.maya.Creator):
class CreateMayaAscii(plugin.Creator):
"""Raw Maya Ascii file export"""

name = "mayaAscii"
Expand Down
4 changes: 2 additions & 2 deletions pype/hosts/maya/plugins/create/create_model.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import avalon.maya
from pype.hosts.maya.api import plugin


class CreateModel(avalon.maya.Creator):
class CreateModel(plugin.Creator):
"""Polygonal static geometry"""

name = "modelMain"
Expand Down
Loading

0 comments on commit af1c39d

Please sign in to comment.