mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
added action assetcreator to launcher (must be delated before merge)
This commit is contained in:
parent
528c16558b
commit
5d0b98ae30
1 changed files with 28 additions and 0 deletions
28
pype/plugins/launcher/actions/Asset_creator.py
Normal file
28
pype/plugins/launcher/actions/Asset_creator.py
Normal 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']])
|
||||
Loading…
Add table
Add a link
Reference in a new issue