nuke: update server addon settings

This commit is contained in:
Jakub Jezek 2023-08-07 16:28:54 +02:00
parent f29d245702
commit 4fdcab4000
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
2 changed files with 15 additions and 1 deletions

View file

@ -39,6 +39,15 @@ class Vector3d(BaseSettingsModel):
z: float = Field(1.0, title="Z")
class Box(BaseSettingsModel):
_layout = "compact"
x: float = Field(1.0, title="X")
y: float = Field(1.0, title="Y")
r: float = Field(1.0, title="R")
t: float = Field(1.0, title="T")
def formatable_knob_type_enum():
return [
{"value": "text", "label": "Text"},
@ -74,6 +83,7 @@ knob_types_enum = [
{"value": "vector_2d", "label": "2D vector"},
{"value": "vector_3d", "label": "3D vector"},
{"value": "color", "label": "Color"},
{"value": "box", "label": "Box"},
{"value": "expression", "label": "Expression"}
]
@ -118,6 +128,10 @@ class KnobModel(BaseSettingsModel):
(0.0, 0.0, 1.0, 1.0),
title="RGBA Float"
)
box: Box = Field(
default_factory=Box,
title="Value"
)
formatable: Formatable = Field(
default_factory=Formatable,
title="Formatable"

View file

@ -1 +1 @@
__version__ = "0.1.1"
__version__ = "0.1.2"