mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
cleanup code
This commit is contained in:
parent
60b2d1bf1d
commit
3fb57aa30f
3 changed files with 9 additions and 23 deletions
|
|
@ -49,7 +49,6 @@ def _clear_credentials():
|
|||
def _set_env(username, apiKey):
|
||||
os.environ['FTRACK_API_USER'] = username
|
||||
os.environ['FTRACK_API_KEY'] = apiKey
|
||||
os.environ['FTRACK_APIKEY'] = apiKey
|
||||
|
||||
def _check_credentials(username=None, apiKey=None):
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
import os
|
||||
import json
|
||||
import base64
|
||||
|
||||
import ftrack_api_old as ftrack_api
|
||||
reload(ftrack_api)
|
||||
import pyblish.api
|
||||
|
||||
|
||||
|
|
@ -22,15 +19,4 @@ class CollectFtrackApi(pyblish.api.ContextPlugin):
|
|||
# Collect task
|
||||
task_id = os.environ.get("FTRACK_TASKID", "")
|
||||
|
||||
try:
|
||||
decoded_event_data = json.loads(
|
||||
base64.b64decode(
|
||||
os.environ.get("FTRACK_CONNECT_EVENT")
|
||||
)
|
||||
)
|
||||
|
||||
task_id = decoded_event_data.get("selection")[0]["entityId"]
|
||||
except:
|
||||
pass
|
||||
|
||||
context.data["ftrackTask"] = session.get("Task", task_id)
|
||||
|
|
|
|||
|
|
@ -12,14 +12,15 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
|||
order = pyblish.api.IntegratorOrder + 0.48
|
||||
label = 'Integrate Ftrack Component'
|
||||
|
||||
family_mapping = { 'camera': 'cam',
|
||||
'look': 'look',
|
||||
'mayaAscii':'scene',
|
||||
'model':'geo',
|
||||
'rig':'rig',
|
||||
'setdress':'setdress',
|
||||
'pointcache':'cache',
|
||||
'review':'mov'}
|
||||
family_mapping = {'camera': 'cam',
|
||||
'look': 'look',
|
||||
'mayaAscii': 'scene',
|
||||
'model': 'geo',
|
||||
'rig': 'rig',
|
||||
'setdress': 'setdress',
|
||||
'pointcache': 'cache',
|
||||
'review': 'mov'}
|
||||
|
||||
|
||||
def process(self, instance):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue