mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
nuke: update server addon settings
This commit is contained in:
parent
f29d245702
commit
4fdcab4000
2 changed files with 15 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
__version__ = "0.1.1"
|
||||
__version__ = "0.1.2"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue