mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
additional options for renderer can us AYON settings
This commit is contained in:
parent
6a3b475be5
commit
6c48e74bd2
2 changed files with 2 additions and 12 deletions
|
|
@ -390,7 +390,8 @@ class RenderSettings(object):
|
|||
import maya.mel as mel # noqa: F401
|
||||
|
||||
for item in additional_attribs:
|
||||
attribute, value = item
|
||||
attribute = item["attribute"]
|
||||
value = item["value"]
|
||||
attribute = str(attribute) # ensure str conversion from settings
|
||||
attribute_type = cmds.getAttr(attribute, type=True)
|
||||
if attribute_type in {"long", "bool"}:
|
||||
|
|
|
|||
|
|
@ -333,17 +333,6 @@ def _convert_maya_project_settings(ayon_settings, output):
|
|||
|
||||
ayon_maya = ayon_settings["maya"]
|
||||
|
||||
for renderer_settings in ayon_maya["RenderSettings"].values():
|
||||
if (
|
||||
not isinstance(renderer_settings, dict)
|
||||
or "additional_options" not in renderer_settings
|
||||
):
|
||||
continue
|
||||
renderer_settings["additional_options"] = [
|
||||
[item["attribute"], item["value"]]
|
||||
for item in renderer_settings["additional_options"]
|
||||
]
|
||||
|
||||
# Workfile build
|
||||
ayon_workfile_build = ayon_maya["workfile_build"]
|
||||
for item in ayon_workfile_build["profiles"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue