mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
pep8 comply
This commit is contained in:
parent
e7760a6508
commit
54b5dd8d61
5 changed files with 14 additions and 11 deletions
|
|
@ -258,6 +258,7 @@ def get_current_project():
|
|||
|
||||
def get_current_sequence(selection):
|
||||
import flame
|
||||
|
||||
def segment_to_sequence(_segment):
|
||||
track = _segment.parent
|
||||
version = track.parent
|
||||
|
|
@ -291,11 +292,7 @@ def rescan_hooks():
|
|||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
|
||||
def get_metadata(project_name, _log=None):
|
||||
import flame
|
||||
|
||||
from adsk.libwiretapPythonClientAPI import (
|
||||
WireTapClient,
|
||||
WireTapServerHandle,
|
||||
|
|
@ -319,7 +316,9 @@ def get_metadata(project_name, _log=None):
|
|||
|
||||
def process(self, project_name):
|
||||
policy_node_handle = WireTapNodeHandle(
|
||||
self._server, "/projects/{}/syncolor/policy".format(project_name))
|
||||
self._server,
|
||||
"/projects/{}/syncolor/policy".format(project_name)
|
||||
)
|
||||
self.log.info(policy_node_handle)
|
||||
|
||||
policy = WireTapStr()
|
||||
|
|
@ -334,4 +333,4 @@ def get_metadata(project_name, _log=None):
|
|||
return policy.c_str()
|
||||
|
||||
policy_wiretap = GetProjectColorPolicy(_log=_log)
|
||||
return policy_wiretap.process(project_name)
|
||||
return policy_wiretap.process(project_name)
|
||||
|
|
|
|||
|
|
@ -24,12 +24,14 @@ default_flame_export_presets = {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
def send_selection(selection):
|
||||
import openpype.hosts.flame as opflame
|
||||
opflame.selection = selection
|
||||
print(opflame.selection)
|
||||
return True
|
||||
|
||||
|
||||
class _FlameMenuApp(object):
|
||||
def __init__(self, framework):
|
||||
self.name = self.__class__.__name__
|
||||
|
|
|
|||
|
|
@ -134,7 +134,8 @@ def create_time_effects(otio_clip, item):
|
|||
# value = [
|
||||
# ((node[knob].getValueAt(i)) - i)
|
||||
# for i in range(
|
||||
# track_item.timelineIn(), track_item.timelineOut() + 1)
|
||||
# track_item.timelineIn(),
|
||||
# track_item.timelineOut() + 1)
|
||||
# ]
|
||||
|
||||
# metadata[knob] = value
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import opentimelineio as otio
|
|||
import logging
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def timecode_to_frames(timecode, framerate):
|
||||
rt = otio.opentime.from_timecode(timecode, framerate)
|
||||
return int(otio.opentime.to_frames(rt))
|
||||
|
|
@ -44,7 +45,6 @@ def get_reformated_path(path, padded=True):
|
|||
else:
|
||||
path = path.replace(found, "%d")
|
||||
|
||||
|
||||
return path
|
||||
|
||||
|
||||
|
|
@ -69,6 +69,7 @@ def get_padding_from_path(path):
|
|||
else:
|
||||
return None
|
||||
|
||||
|
||||
def get_frame_from_path(path):
|
||||
"""
|
||||
Return sequence number from Flame path style
|
||||
|
|
@ -91,4 +92,4 @@ def get_frame_from_path(path):
|
|||
if found:
|
||||
return found.pop()
|
||||
else:
|
||||
return None
|
||||
return None
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import openpype.hosts.flame as opflame
|
|||
from openpype.hosts.flame.otio import flame_export as otio_export
|
||||
from openpype.hosts.flame.api import lib
|
||||
from pprint import pformat
|
||||
reload(lib)
|
||||
reload(otio_export)
|
||||
reload(lib) # noqa
|
||||
reload(otio_export) # noqa
|
||||
|
||||
|
||||
@pyblish.api.log
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue