mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Use the setting in CollectRender
This commit is contained in:
parent
89490f4b14
commit
b3ec2fe524
1 changed files with 6 additions and 2 deletions
|
|
@ -221,14 +221,18 @@ class CollectMayaRender(pyblish.api.ContextPlugin):
|
||||||
# append full path
|
# append full path
|
||||||
full_exp_files = []
|
full_exp_files = []
|
||||||
aov_dict = {}
|
aov_dict = {}
|
||||||
|
default_render_file = context.data.get('project_settings')\
|
||||||
|
.get('maya')\
|
||||||
|
.get('create')\
|
||||||
|
.get('CreateRender')\
|
||||||
|
.get('default_render_image_folder')
|
||||||
# replace relative paths with absolute. Render products are
|
# replace relative paths with absolute. Render products are
|
||||||
# returned as list of dictionaries.
|
# returned as list of dictionaries.
|
||||||
publish_meta_path = None
|
publish_meta_path = None
|
||||||
for aov in exp_files:
|
for aov in exp_files:
|
||||||
full_paths = []
|
full_paths = []
|
||||||
for file in aov[aov.keys()[0]]:
|
for file in aov[aov.keys()[0]]:
|
||||||
full_path = os.path.join(workspace, "renders", file)
|
full_path = os.path.join(workspace, default_render_file, file)
|
||||||
full_path = full_path.replace("\\", "/")
|
full_path = full_path.replace("\\", "/")
|
||||||
full_paths.append(full_path)
|
full_paths.append(full_path)
|
||||||
publish_meta_path = os.path.dirname(full_path)
|
publish_meta_path = os.path.dirname(full_path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue