This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR should not affect PR: #697. But it may as change same files. In that case let me know please.
Changes
New file
ffmpeg_utils.py
- utilities for ffmpeg tools- Personally don't like the name
ffmpeg_utils
but didn't came up with better. Contain only one function for ffprobe.ffprobe_streams
- get metadata from entered pathNew file
avalon_context.py
- functions based on current context in avalon's Session (AVALON_PROJECT
)is_latest
- check if representation is from latest versionany_outdated
- checker of outdated loaded contentget_asset
- get document of current asset by name inAVALON_ASSET
get_hierarchy
- get hierarchy of current assetget_linked_assets
- get linked asset documentsget_latest_version
- get latest version by entered arguments (asset name, subset name, etc.)BuildWorkfile
- logic for build workfile based on presetsMoved functions
- They're not created by me. Wanted to move them to
avalon_context
but their logic seems to be specific for their usage.switch_item
moved tofusion.lib
used only in fusion host - !!! If possible test if it works, I don't have fusion to test it properly. !!!get_subsets
used only in celaction collector -> moved to the collector. Seems like the function does more then just "get subsets". Very uneffective way of getting documents from mongo.