mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
23 lines
607 B
Python
23 lines
607 B
Python
import avalon.maya
|
|
from pype.hosts.maya import lib
|
|
|
|
|
|
class CreateLook(avalon.maya.Creator):
|
|
"""Shader connections defining shape look"""
|
|
|
|
name = "look"
|
|
label = "Look"
|
|
family = "look"
|
|
icon = "paint-brush"
|
|
defaults = ['Main']
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
super(CreateLook, self).__init__(*args, **kwargs)
|
|
|
|
self.data["renderlayer"] = lib.get_current_renderlayer()
|
|
|
|
# Whether to automatically convert the textures to .tx upon publish.
|
|
self.data["maketx"] = True
|
|
|
|
# Enable users to force a copy.
|
|
self.data["forceCopy"] = False
|