mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
24 lines
654 B
Python
24 lines
654 B
Python
from maya import cmds
|
|
|
|
import pype.maya.lib as lib
|
|
import avalon.maya
|
|
|
|
|
|
class CreateRig(avalon.maya.Creator):
|
|
"""Artist-friendly rig with controls to direct motion"""
|
|
|
|
name = "rigDefault"
|
|
label = "Rig"
|
|
family = "rig"
|
|
icon = "wheelchair"
|
|
defaults = ['Main']
|
|
|
|
def process(self):
|
|
|
|
with lib.undo_chunk():
|
|
instance = super(CreateRig, self).process()
|
|
|
|
self.log.info("Creating Rig instance set up ...")
|
|
controls = cmds.sets(name="controls_SET", empty=True)
|
|
pointcache = cmds.sets(name="out_SET", empty=True)
|
|
cmds.sets([controls, pointcache], forceElement=instance)
|