-
Notifications
You must be signed in to change notification settings - Fork 129
Resolve: Match folder structure to other hosts #3653
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,129 +0,0 @@ | ||
from .api.utils import ( | ||
setup, | ||
get_resolve_module | ||
) | ||
|
||
from .api.pipeline import ( | ||
install, | ||
uninstall, | ||
ls, | ||
containerise, | ||
update_container, | ||
publish, | ||
launch_workfiles_app, | ||
maintained_selection, | ||
remove_instance, | ||
list_instances | ||
) | ||
|
||
from .api.lib import ( | ||
maintain_current_timeline, | ||
publish_clip_color, | ||
get_project_manager, | ||
get_current_project, | ||
get_current_timeline, | ||
create_bin, | ||
get_media_pool_item, | ||
create_media_pool_item, | ||
create_timeline_item, | ||
get_timeline_item, | ||
get_video_track_names, | ||
get_current_timeline_items, | ||
get_pype_timeline_item_by_name, | ||
get_timeline_item_pype_tag, | ||
set_timeline_item_pype_tag, | ||
imprint, | ||
set_publish_attribute, | ||
get_publish_attribute, | ||
create_compound_clip, | ||
swap_clips, | ||
get_pype_clip_metadata, | ||
set_project_manager_to_folder_name, | ||
get_otio_clip_instance_data, | ||
get_reformated_path | ||
) | ||
|
||
from .api.menu import launch_pype_menu | ||
|
||
from .api.plugin import ( | ||
ClipLoader, | ||
TimelineItemLoader, | ||
Creator, | ||
PublishClip | ||
) | ||
|
||
from .api.workio import ( | ||
open_file, | ||
save_file, | ||
current_file, | ||
has_unsaved_changes, | ||
file_extensions, | ||
work_root | ||
) | ||
|
||
from .api.testing_utils import TestGUI | ||
|
||
|
||
__all__ = [ | ||
# pipeline | ||
"install", | ||
"uninstall", | ||
"ls", | ||
"containerise", | ||
"update_container", | ||
"reload_pipeline", | ||
"publish", | ||
"launch_workfiles_app", | ||
"maintained_selection", | ||
"remove_instance", | ||
"list_instances", | ||
|
||
# utils | ||
"setup", | ||
"get_resolve_module", | ||
|
||
# lib | ||
"maintain_current_timeline", | ||
"publish_clip_color", | ||
"get_project_manager", | ||
"get_current_project", | ||
"get_current_timeline", | ||
"create_bin", | ||
"get_media_pool_item", | ||
"create_media_pool_item", | ||
"create_timeline_item", | ||
"get_timeline_item", | ||
"get_video_track_names", | ||
"get_current_timeline_items", | ||
"get_pype_timeline_item_by_name", | ||
"get_timeline_item_pype_tag", | ||
"set_timeline_item_pype_tag", | ||
"imprint", | ||
"set_publish_attribute", | ||
"get_publish_attribute", | ||
"create_compound_clip", | ||
"swap_clips", | ||
"get_pype_clip_metadata", | ||
"set_project_manager_to_folder_name", | ||
"get_otio_clip_instance_data", | ||
"get_reformated_path", | ||
|
||
# menu | ||
"launch_pype_menu", | ||
|
||
# plugin | ||
"ClipLoader", | ||
"TimelineItemLoader", | ||
"Creator", | ||
"PublishClip", | ||
|
||
# workio | ||
"open_file", | ||
"save_file", | ||
"current_file", | ||
"has_unsaved_changes", | ||
"file_extensions", | ||
"work_root", | ||
|
||
"TestGUI" | ||
] | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,137 @@ | ||
""" | ||
resolve api | ||
""" | ||
import os | ||
|
||
bmdvr = None | ||
bmdvf = None | ||
|
||
API_DIR = os.path.dirname(os.path.abspath(__file__)) | ||
HOST_DIR = os.path.dirname(API_DIR) | ||
PLUGINS_DIR = os.path.join(HOST_DIR, "plugins") | ||
from .utils import ( | ||
get_resolve_module | ||
) | ||
|
||
from .pipeline import ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. module level import not at top of file |
||
install, | ||
uninstall, | ||
ls, | ||
containerise, | ||
update_container, | ||
publish, | ||
launch_workfiles_app, | ||
maintained_selection, | ||
remove_instance, | ||
list_instances | ||
) | ||
|
||
from .lib import ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. module level import not at top of file |
||
maintain_current_timeline, | ||
publish_clip_color, | ||
get_project_manager, | ||
get_current_project, | ||
get_current_timeline, | ||
create_bin, | ||
get_media_pool_item, | ||
create_media_pool_item, | ||
create_timeline_item, | ||
get_timeline_item, | ||
get_video_track_names, | ||
get_current_timeline_items, | ||
get_pype_timeline_item_by_name, | ||
get_timeline_item_pype_tag, | ||
set_timeline_item_pype_tag, | ||
imprint, | ||
set_publish_attribute, | ||
get_publish_attribute, | ||
create_compound_clip, | ||
swap_clips, | ||
get_pype_clip_metadata, | ||
set_project_manager_to_folder_name, | ||
get_otio_clip_instance_data, | ||
get_reformated_path | ||
) | ||
|
||
from .menu import launch_pype_menu | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. module level import not at top of file |
||
|
||
from .plugin import ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. module level import not at top of file |
||
ClipLoader, | ||
TimelineItemLoader, | ||
Creator, | ||
PublishClip | ||
) | ||
|
||
from .workio import ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. module level import not at top of file |
||
open_file, | ||
save_file, | ||
current_file, | ||
has_unsaved_changes, | ||
file_extensions, | ||
work_root | ||
) | ||
|
||
from .testing_utils import TestGUI | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. module level import not at top of file |
||
|
||
|
||
__all__ = [ | ||
"bmdvr", | ||
"bmdvf", | ||
|
||
# pipeline | ||
"install", | ||
"uninstall", | ||
"ls", | ||
"containerise", | ||
"update_container", | ||
"reload_pipeline", | ||
"publish", | ||
"launch_workfiles_app", | ||
"maintained_selection", | ||
"remove_instance", | ||
"list_instances", | ||
|
||
# utils | ||
"get_resolve_module", | ||
|
||
# lib | ||
"maintain_current_timeline", | ||
"publish_clip_color", | ||
"get_project_manager", | ||
"get_current_project", | ||
"get_current_timeline", | ||
"create_bin", | ||
"get_media_pool_item", | ||
"create_media_pool_item", | ||
"create_timeline_item", | ||
"get_timeline_item", | ||
"get_video_track_names", | ||
"get_current_timeline_items", | ||
"get_pype_timeline_item_by_name", | ||
"get_timeline_item_pype_tag", | ||
"set_timeline_item_pype_tag", | ||
"imprint", | ||
"set_publish_attribute", | ||
"get_publish_attribute", | ||
"create_compound_clip", | ||
"swap_clips", | ||
"get_pype_clip_metadata", | ||
"set_project_manager_to_folder_name", | ||
"get_otio_clip_instance_data", | ||
"get_reformated_path", | ||
|
||
# menu | ||
"launch_pype_menu", | ||
|
||
# plugin | ||
"ClipLoader", | ||
"TimelineItemLoader", | ||
"Creator", | ||
"PublishClip", | ||
|
||
# workio | ||
"open_file", | ||
"save_file", | ||
"current_file", | ||
"has_unsaved_changes", | ||
"file_extensions", | ||
"work_root", | ||
|
||
"TestGUI" | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
module level import not at top of file