mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Merge branch 'master' of https://bitbucket.org/colorbleed/config
This commit is contained in:
commit
2a5c920db4
4 changed files with 63 additions and 0 deletions
|
|
@ -6,6 +6,13 @@
|
|||
"title": "Version Up",
|
||||
"tooltip": "Incremental save with a specific format"
|
||||
},
|
||||
{
|
||||
"type": "action",
|
||||
"command": "$COLORBLEED_SCRIPTS\\avalon\\launch_manager.py",
|
||||
"sourcetype": "file",
|
||||
"title": "Project Manager",
|
||||
"tooltip": "Add assets to the project"
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
},
|
||||
|
|
|
|||
9
colorbleed/plugins/maya/create/colorbleed_setdress.py
Normal file
9
colorbleed/plugins/maya/create/colorbleed_setdress.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import avalon.maya
|
||||
|
||||
|
||||
class CreateSetdress(avalon.maya.Creator):
|
||||
"""Skeleton and controls for manipulation of the geometry"""
|
||||
|
||||
name = "setDress"
|
||||
label = "Setdress"
|
||||
family = "colorbleed.setdress"
|
||||
34
colorbleed/plugins/maya/load/load_mayaascii.py
Normal file
34
colorbleed/plugins/maya/load/load_mayaascii.py
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
from avalon import api
|
||||
|
||||
|
||||
class MayaAsciiLoader(api.Loader):
|
||||
"""Load the model"""
|
||||
|
||||
families = ["colorbleed.mayaAscii"]
|
||||
representations = ["ma"]
|
||||
|
||||
label = "Reference Maya Ascii"
|
||||
order = -10
|
||||
icon = "code-fork"
|
||||
color = "orange"
|
||||
|
||||
def process(self, name, namespace, context, data):
|
||||
|
||||
import maya.cmds as cmds
|
||||
from avalon import maya
|
||||
|
||||
# Create a readable namespace
|
||||
# Namespace should contain asset name and counter
|
||||
# TEST_001{_descriptor} where `descriptor` can be `_abc` for example
|
||||
assetname = "{}_".format(namespace.split("_")[0])
|
||||
namespace = maya.unique_namespace(assetname, format="%03d")
|
||||
|
||||
with maya.maintained_selection():
|
||||
nodes = cmds.file(self.fname,
|
||||
namespace=namespace,
|
||||
reference=True,
|
||||
returnNewNodes=True,
|
||||
groupReference=True,
|
||||
groupName="{}:{}".format(namespace, name))
|
||||
|
||||
self[:] = nodes
|
||||
13
colorbleed/plugins/maya/publish/collect_setdress.py
Normal file
13
colorbleed/plugins/maya/publish/collect_setdress.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from maya import cmds
|
||||
|
||||
import pyblish.api
|
||||
|
||||
|
||||
class CollectSetdress(pyblish.api.InstancePlugin):
|
||||
|
||||
order = pyblish.api.CollectorOrder + 0.499
|
||||
label = 'Collect Model Data'
|
||||
families = ["colorbleed.setdress"]
|
||||
|
||||
def process(self, instance):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue