[Blender_Kitsu] Publish VSE Edit as Revision on Kitsu #7

Merged
Nick Alberelli merged 28 commits from :feature/upload_render_to_kitsu into master 2023-04-17 19:02:15 +02:00

28 Commits

Author SHA1 Message Date
TinyNick
65c173e545 [Blender_Kitsu] playblast add TODO for refactor 2023-04-17 19:01:25 +02:00
TinyNick
208524146e [Blender_Kits] Publish_Edit_Rev add frame_start feature
- add 'frame_start' and 'use_frame_start' props
 - check for 'frame_start' in invoke function (incase only some projects contain frame_start)
 - not all projects contain 'frame_start'
 - fix missing comment
2023-04-17 19:01:25 +02:00
TinyNick
dfaec5f3e7 [Blender_Kitsu] gazu.entity add update_entity() function 2023-04-17 19:01:25 +02:00
TinyNick
1cdc515034 [Blender_Kitsu] Publush_Edit_Rev use get_edit() 2023-04-17 19:01:25 +02:00
TinyNick
0fe7fb56f6 [Blender_Kitsu] gazu.edit add get_edit() function 2023-04-17 19:01:25 +02:00
TinyNick
5b573c0476 [Blender_Kitsu] Add 'Publish Edit Revision' to VSE UI 2023-04-17 19:01:25 +02:00
TinyNick
b8b550c354 [Blender_Kitsu] Edit_Comment rename to Publish_Edit_Revision
- Rename BL_Info to `vse_publish_edit_revision`
 - Rename operator class
 - Move class to bottom of file
2023-04-17 19:01:25 +02:00
TinyNick
3af7d7b0a0 [Blender_Kitsu] Edit_Comment give render relevant filename
- Use project name in render_filename
 - add function to find name of enum entry
 - Use edit entry name in render_filename
 - add revision number to filename from previews length
 - create revision int safely in function
- remove add_comment_on_edit_task() move into main op instead (wasn't relevant in gazu.edit module)
2023-04-17 19:01:25 +02:00
TinyNick
fd5851c4f8 [Blender_Kitsu] Edit_Comment only return relevant edit_entry_items
- skip if edit is has no task via gazu function
 - skip if not in current active project
 - skip if 'canceled'
2023-04-17 19:01:25 +02:00
TinyNick
87e0066618 [Blender_Kistu] Edit_Comment use user's render dir
- Use scene.render.filepath in invoke
 - remove filename if path is not dictory
 - allow user to change path, early return if it's not a directory during exec
2023-04-17 19:01:25 +02:00
TinyNick
d3d703c5ae [Blender_Kitsu] Edit_Comment remove self.render_name 2023-04-17 19:01:25 +02:00
TinyNick
8377fce1ad [Blender Kitsu] Edit_Comment only show task if >2 are found 2023-04-17 19:01:25 +02:00
TinyNick
774a256890 [Blender_Kitsu] submit edit comment early return if no task is found 2023-04-17 19:01:25 +02:00
TinyNick
8bba239422 [Blender_Kitsu] Gazu add get_all_previews_for_edit() 2023-04-17 19:01:25 +02:00
TinyNick
59785f8437 [Blender_Kitsu] gazu add get_all_edits_with_tasks() 2023-04-17 19:01:25 +02:00
TinyNick
85cac212a2 [Blender_Kitsu] Improve submit edit comment op
- Pass Render Path in UI
 - Pass Render Path in Directory
 - Fix Render Path
 - Use user renderpath in invoke
 - create meaningful comment message with timestamp and rendered filename
2023-04-17 19:01:25 +02:00
TinyNick
5be2785e81 [Blender_Kitsu] playblast.core Add override_render_format() 2023-04-17 19:01:25 +02:00
TinyNick
44397b63af [Blender_Kitsu] playblast.core add contextmanager for file_path 2023-04-17 19:01:25 +02:00
TinyNick
ebcbf29688 [Blender Kitsu] Return Edits & Tasks submit edit comment op
- Add Enum for Edit Entry
 - Add Enum for Tasks
 - Use Gazu get_all_edits() and get_all_tasks_for_edit() in enum item
 - Allow User to select Edit and Task
2023-04-17 19:01:25 +02:00
TinyNick
c309dd45cd [Blender_Kitsu] Gazu add all_tasks_for_edit() function 2023-04-17 19:01:25 +02:00
TinyNick
4956a2557b [Blender_Kitsu] Gazu add get_all_edits() function 2023-04-17 19:01:25 +02:00
TinyNick
16fe6f7058 [Blender_Kitsu] Submit Render as Comment to Edit Task
- This is a simple implementation of the task but it is working!
 - rename new_edit() to add_comment_on_edit_task()
 -pass only render_path, task_id and comment
 -pass task_id via UI
 -pass comment via UI
 - Update TODOs
2023-04-17 19:01:25 +02:00
TinyNick
63991eaaa4 [Blender_Kitsu] Render File and submit path to Kitsu
- Pass Rendered_filepath to new_edit()
 - Temoprarily construct rebder path path
 - Add TODO for bad server response
 - Using upload method similar to`playblast.ops.KITSU_OT_playblast_create`
2023-04-17 19:01:25 +02:00
TinyNick
f0a6170fed [Blender_Kitsu] Make override_render_settings a generic function 2023-04-17 19:01:25 +02:00
TinyNick
2f308f0b0d [Bledner_Kitsu] Call new_edit() in 'Submit New Edit to Kitsu' op
- pass name and description as a string
 - Provide feedback to user about submitted file
 - Add TODO to pass actual render file
2023-04-17 19:01:25 +02:00
TinyNick
7472ec1cb3 [Blender_Kitsu] Add function to publish edit to Kitsu 2023-04-17 19:01:25 +02:00
TinyNick
37c16734a8 [Blender_Kitsu] Create gazu.edit sub-module 2023-04-17 19:01:25 +02:00
TinyNick
5b818313ce [Blender_Kitsu] Add upload edit to Kitsu operator
- add a basic poll method
 - register operator
2023-04-17 19:01:25 +02:00