added action assetcreator to launcher (must be delated before merge)

This commit is contained in:
Jakub Trllo 2019-02-20 16:40:12 +01:00
parent 528c16558b
commit 5d0b98ae30

View file

@ -0,0 +1,28 @@
import os
import sys
import acre
from avalon import api, lib
from pype.tools import assetcreator
from pype.api import Logger
log = Logger.getLogger(__name__, "aport")
class AssetCreator(api.Action):
name = "asset_creator"
label = "Asset Creator"
icon = "retweet"
order = 250
def is_compatible(self, session):
"""Return whether the action is compatible with the session"""
return True
def process(self, session, **kwargs):
return lib.launch(executable="python",
args=["-u", "-m", "pype.tools.assetcreator",
session['AVALON_PROJECT']])