Thomas Fricard
34528b6eeb
Deactivate closed Kitsu projects on OP ( #4619 )
...
* update openpype projects status from kitsu settings
* fix linting errors
* get all projects and verify the project status for each project
* optimizing project status name verification
* sync only if project exists and is active in OP
* remove noqa
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
* break from all_status for loop and add comment for non sync projects
---------
Co-authored-by: jeremy.oblet <jeremy.oblet@fixstudio.com>
Co-authored-by: Thomas Fricard <tfricard@ws114.prs.vfx.int>
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2023-04-03 12:11:53 +02:00
Jacob Danell
78ce629ba6
Removed double casting
2023-03-14 18:14:19 +01:00
Jacob Danell
6e34c4aed2
Make sure value-data is int or float
2023-03-09 16:13:32 +01:00
Jacob Danell
acbfb5985b
Fixed task itteration
...
From the last PR (https://github.com/ynput/OpenPype/pull/4425 ) a comment-commit last second messed up and resultet in two lines being the same, crashing the script.
This fixes that.
2023-03-07 19:34:12 +01:00
Jacob Danell
67bc287321
Fix hound comments
2023-03-03 16:49:11 +01:00
Jacob Danell
8fc6978ea2
Formatted with Black
2023-03-03 16:49:11 +01:00
Ember Light
c50678bcb8
Update openpype/modules/kitsu/utils/update_op_with_zou.py
...
Co-authored-by: Félix David <felixg.david@gmail.com>
2023-03-03 16:49:11 +01:00
Jacob Danell
7176be9f92
Log msg for new_task now work for both shot and assets
2023-03-03 16:49:11 +01:00
Jacob Danell
804cdcafd6
Store the gazu asset data in OPs DB as sync_service does
...
This isn't the most optimal way to do it but it makes sure the data is consistent through out the code until we can revision sync_service to only use the ID from the dict.
2023-03-03 16:49:11 +01:00
Jacob Danell
966ba0166e
Fixed delete_task msg creation to work with assets and episodes
2023-03-03 16:49:11 +01:00
Jacob Danell
95e1f95bc1
Moved all ep_dict code into one function
2023-03-03 16:49:11 +01:00
Ember Light
93eb9fce86
Update openpype/modules/kitsu/utils/sync_service.py
...
Co-authored-by: Félix David <felixg.david@gmail.com>
2023-03-03 16:49:11 +01:00
Jacob Danell
5a9ea0d130
Changed back from dict to doc for var names
2023-03-03 16:49:11 +01:00
Jacob Danell
247778575f
Project creation logs happens outside of write_project_to_op() function
2023-03-03 16:49:11 +01:00
Jacob Danell
0beec8c3a7
Fixed hound's comments
2023-03-03 16:49:11 +01:00
Jacob Danell
0d981a6129
Fixed hound's comments
2023-03-03 16:49:11 +01:00
Jacob Danell
8bf970e8b9
fixed hound's comments
2023-03-03 16:49:11 +01:00
Jacob Danell
d153e6c224
Split up the difference in name and type Assets/Shots generate
...
Before it was only working for shots. Now it also works for Assets.
I'm ding an elif as Kitsu now also have tasks for sequences, edits and other things.
Will try and add those in at a later stage.
2023-03-03 16:49:11 +01:00
Jacob Danell
d9ac1ee952
Cleaned up log.info() message creation
2023-03-03 16:49:11 +01:00
Jacob Danell
bcea2c70a2
Cleaned up project deletion code
2023-03-03 16:49:11 +01:00
Jacob Danell
f9137bdb04
Added docstring and changed doc to dict in var-names
2023-03-03 16:49:11 +01:00
Jacob Danell
3fc2180e51
Fixed all quotes types so they now match
2023-03-03 16:49:11 +01:00
Jacob Danell
4bcef44068
Fixed hound's max-length note
2023-03-03 16:49:11 +01:00
Jacob Danell
915d110404
Set frame_out to frame_in if no duration exists
...
fix for https://github.com/ynput/OpenPype/pull/4425#discussion_r1108593566
2023-03-03 16:49:11 +01:00
Jacob Danell
c4f1a1f452
Fixed hound's "line too long" comments
2023-03-03 16:49:11 +01:00
Jacob Danell
ef698b4afa
Fixed 1 extra frame at frameEnd
...
Same as #4466
2023-03-03 16:49:11 +01:00
Jacob Danell
1045ee0c1e
Check if asset_doc exist before processing it
2023-03-03 16:49:11 +01:00
Jacob Danell
7e6c47967f
Get episode_id using get() as ep_id might not always exist
2023-03-03 16:49:11 +01:00
Jacob Danell
290709705e
Changed logging from f-string to .format()
2023-03-03 16:49:11 +01:00
Jacob Danell
4bc67437b6
Fixed line too long and too many '#' for comments
2023-03-03 16:49:11 +01:00
Jacob Danell
47caa76030
Updated Kitsu Sync module to fully work with all events
...
Manually tried all events, added logging for events and cleaned up the code some.
2023-03-03 16:49:11 +01:00
Jacob Danell
bb61d43c27
Shortened length of line 141
2023-03-03 16:49:11 +01:00
Jacob Danell
dc2b519fd5
Fixed hound-bots comments
2023-03-03 16:49:11 +01:00
Jacob Danell
5dee2b8ff6
Add missing attributes to each asset
...
Without them, Tray Publisher errors out.
2023-03-03 16:49:11 +01:00
Jacob Danell
3b4cdb13db
Add parents key to assets and shots
...
Without this you can't open the project in Tray Publisher
2023-03-03 16:49:11 +01:00
Jacob Danell
a005d10829
Add Resolution and Pixel Aspect to each item
...
Without this info eg. Fusion would throw an error and stop working.
2023-03-03 16:49:11 +01:00
Jacob Danell
9795e7c910
Populate items with correct data from Kitsu or project defaults
...
If data doesn't exist in Kitsu, use Projects default data.
2023-03-03 16:49:11 +01:00
Jacob Danell
6f0cd7fc2f
add visualParent None to Shots and Assets
...
Without this, tray-publisher throws an error and stops working.
2023-03-03 16:49:11 +01:00
Felix David
a8969fb5c2
Feature: API token refreshed every week
2022-12-09 09:57:10 +01:00
Milan Kolar
c4c09ec640
Merge pull request #3940 from Tilix4/fx_kitsu_module
2022-10-17 15:30:48 +02:00
Félix David
4aec32af91
line length
2022-10-05 12:30:20 +02:00
Félix David
0337403182
line length
2022-10-05 12:17:19 +02:00
Félix David
8f04c3351b
Fix: 2 fixes, nb_frames and Shot type error
2022-10-05 12:12:53 +02:00
Jakub Trllo
a3e795aa37
import setting functions from 'openpype.settings'
2022-10-04 11:51:52 +02:00
Clément Hector
5c0b5b148b
make resolution int var
...
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
2022-09-26 15:06:44 +02:00
clement.hector
a0bd78027c
fix linter
2022-09-26 13:51:44 +02:00
clement.hector
9f591b2605
fix linter
2022-09-26 13:49:42 +02:00
clement.hector
e2fd32d810
use regex and logger
2022-09-26 13:43:22 +02:00
clement.hector
9a9c29c70c
remove unecessary code
2022-09-19 18:48:27 +02:00
clement.hector
b3bedc7ce7
remove comment
2022-09-19 18:37:17 +02:00