mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Implemented several suggestions from reviews
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Co-authored-by: Oscar Domingo <oscardomingo@gmail.com> Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
parent
481e814858
commit
4b27abfae2
4 changed files with 9 additions and 13 deletions
|
|
@ -12,12 +12,12 @@ class LayerMetadata(object):
|
|||
|
||||
@attr.s
|
||||
class RenderProduct(object):
|
||||
"""Getting Colorspace as
|
||||
Specific Render Product Parameter for submitting
|
||||
"""
|
||||
Getting Colorspace as Specific Render Product Parameter for submitting
|
||||
publish job.
|
||||
"""
|
||||
colorspace = attr.ib() # colorspace
|
||||
view = attr.ib()
|
||||
colorspace = attr.ib() # colorspace
|
||||
view = attr.ib() # OCIO view transform
|
||||
productName = attr.ib(default=None)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,13 +3,11 @@ import os
|
|||
|
||||
import bpy
|
||||
|
||||
from openpype.settings import get_project_settings
|
||||
from openpype.pipeline import (
|
||||
get_current_project_name,
|
||||
get_current_task_name,
|
||||
)
|
||||
from openpype.settings import (
|
||||
get_project_settings,
|
||||
)
|
||||
from openpype.pipeline import get_current_task_name
|
||||
from openpype.hosts.blender.api import plugin, lib
|
||||
from openpype.hosts.blender.api.pipeline import AVALON_INSTANCES
|
||||
|
||||
|
|
@ -76,9 +74,7 @@ class CreateRenderlayer(plugin.Creator):
|
|||
instance (pyblish.api.Instance): The instance to publish.
|
||||
ext (str): The image format to render.
|
||||
"""
|
||||
output_file = os.path.join(output_path, name)
|
||||
|
||||
render_product = f"{output_file}.####"
|
||||
render_product = f"{os.path.join(output_path, name)}.####"
|
||||
render_product = render_product.replace("\\", "/")
|
||||
|
||||
return render_product
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@
|
|||
"label": "Type",
|
||||
"type": "enum",
|
||||
"multiselection": false,
|
||||
"defaults": "color",
|
||||
"default": "COLOR",
|
||||
"enum_items": [
|
||||
{"COLOR": "Color"},
|
||||
{"VALUE": "Value"}
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class CustomPassesModel(BaseSettingsModel):
|
|||
|
||||
attribute: str = Field("", title="Attribute name")
|
||||
value: str = Field(
|
||||
"Color",
|
||||
"COLOR",
|
||||
title="Type",
|
||||
enum_resolver=custom_passes_types_enum
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue