mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
flame: cleaning code
This commit is contained in:
parent
eabaca9ca4
commit
df6499868b
6 changed files with 7 additions and 23 deletions
|
|
@ -11,10 +11,8 @@ from .constants import (
|
||||||
from .lib import (
|
from .lib import (
|
||||||
CTX,
|
CTX,
|
||||||
FlameAppFramework,
|
FlameAppFramework,
|
||||||
get_project_manager,
|
|
||||||
get_current_project,
|
get_current_project,
|
||||||
get_current_sequence,
|
get_current_sequence,
|
||||||
create_bin,
|
|
||||||
create_segment_data_marker,
|
create_segment_data_marker,
|
||||||
get_segment_data_marker,
|
get_segment_data_marker,
|
||||||
set_segment_data_marker,
|
set_segment_data_marker,
|
||||||
|
|
@ -87,10 +85,8 @@ __all__ = [
|
||||||
# lib
|
# lib
|
||||||
"CTX",
|
"CTX",
|
||||||
"FlameAppFramework",
|
"FlameAppFramework",
|
||||||
"get_project_manager",
|
|
||||||
"get_current_project",
|
"get_current_project",
|
||||||
"get_current_sequence",
|
"get_current_sequence",
|
||||||
"create_bin",
|
|
||||||
"create_segment_data_marker",
|
"create_segment_data_marker",
|
||||||
"get_segment_data_marker",
|
"get_segment_data_marker",
|
||||||
"set_segment_data_marker",
|
"set_segment_data_marker",
|
||||||
|
|
|
||||||
|
|
@ -227,16 +227,6 @@ class FlameAppFramework(object):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
def get_project_manager():
|
|
||||||
# TODO: get_project_manager
|
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
def get_media_storage():
|
|
||||||
# TODO: get_media_storage
|
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
def get_current_project():
|
def get_current_project():
|
||||||
import flame
|
import flame
|
||||||
return flame.project.current_project
|
return flame.project.current_project
|
||||||
|
|
@ -266,11 +256,6 @@ def get_current_sequence(selection):
|
||||||
return process_timeline
|
return process_timeline
|
||||||
|
|
||||||
|
|
||||||
def create_bin(name, root=None):
|
|
||||||
# TODO: create_bin
|
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
def rescan_hooks():
|
def rescan_hooks():
|
||||||
import flame
|
import flame
|
||||||
try:
|
try:
|
||||||
|
|
@ -724,5 +709,5 @@ def get_batch_group_from_desktop(name):
|
||||||
project_desktop = project.current_workspace.desktop
|
project_desktop = project.current_workspace.desktop
|
||||||
|
|
||||||
for bgroup in project_desktop.batch_groups:
|
for bgroup in project_desktop.batch_groups:
|
||||||
if bgroup.name.get_value() == name:
|
if bgroup.name.get_value() in name:
|
||||||
return bgroup
|
return bgroup
|
||||||
|
|
|
||||||
|
|
@ -254,7 +254,7 @@ class WireTapCom(object):
|
||||||
filtered_users = [user for user in used_names if user_name in user]
|
filtered_users = [user for user in used_names if user_name in user]
|
||||||
|
|
||||||
if filtered_users:
|
if filtered_users:
|
||||||
# todo: need to find lastly created following regex pattern for
|
# TODO: need to find lastly created following regex pattern for
|
||||||
# date used in name
|
# date used in name
|
||||||
return filtered_users.pop()
|
return filtered_users.pop()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ class LoadClip(opfapi.ClipLoader):
|
||||||
clip_name = self.clip_name_template.format(
|
clip_name = self.clip_name_template.format(
|
||||||
**context["representation"]["context"])
|
**context["representation"]["context"])
|
||||||
|
|
||||||
# todo: settings in imageio
|
# TODO: settings in imageio
|
||||||
# convert colorspace with ocio to flame mapping
|
# convert colorspace with ocio to flame mapping
|
||||||
# in imageio flame section
|
# in imageio flame section
|
||||||
colorspace = colorspace
|
colorspace = colorspace
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ class LoadClipBatch(opfapi.ClipLoader):
|
||||||
clip_name = self.clip_name_template.format(
|
clip_name = self.clip_name_template.format(
|
||||||
**context["representation"]["context"])
|
**context["representation"]["context"])
|
||||||
|
|
||||||
# todo: settings in imageio
|
# TODO: settings in imageio
|
||||||
# convert colorspace with ocio to flame mapping
|
# convert colorspace with ocio to flame mapping
|
||||||
# in imageio flame section
|
# in imageio flame section
|
||||||
colorspace = colorspace
|
colorspace = colorspace
|
||||||
|
|
|
||||||
|
|
@ -166,8 +166,11 @@ class IntegrateBatchGroup(pyblish.api.InstancePlugin):
|
||||||
self.log.info(
|
self.log.info(
|
||||||
"Updating batch group: {}".format(batchgroup_name))
|
"Updating batch group: {}".format(batchgroup_name))
|
||||||
# update already created batch group
|
# update already created batch group
|
||||||
|
bgroup.name = batchgroup_name
|
||||||
bgroup.start_frame = frame_start
|
bgroup.start_frame = frame_start
|
||||||
bgroup.duration = frame_duration
|
bgroup.duration = frame_duration
|
||||||
|
# TODO: also update write node if there is any
|
||||||
|
# TODO: also update loaders to start from correct frameStart
|
||||||
|
|
||||||
return bgroup
|
return bgroup
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue