42 lines
857 B
Python
42 lines
857 B
Python
|
import typing as typ
|
||
|
|
||
|
import pydantic as pyd
|
||
|
|
||
|
from .. import base
|
||
|
from ... import contracts
|
||
|
|
||
|
####################
|
||
|
# - Blender Socket
|
||
|
####################
|
||
|
class PhysicalLengthBLSocket(base.BLSocket):
|
||
|
socket_type = contracts.SocketType.PhysicalLength
|
||
|
bl_label = "PhysicalLength"
|
||
|
|
||
|
####################
|
||
|
# - Default Value
|
||
|
####################
|
||
|
@property
|
||
|
def default_value(self) -> None:
|
||
|
pass
|
||
|
|
||
|
@default_value.setter
|
||
|
def default_value(self, value: typ.Any) -> None:
|
||
|
pass
|
||
|
|
||
|
####################
|
||
|
# - Socket Configuration
|
||
|
####################
|
||
|
class PhysicalLengthSocketDef(pyd.BaseModel):
|
||
|
socket_type: contracts.SocketType = contracts.SocketType.PhysicalLength
|
||
|
label: str
|
||
|
|
||
|
def init(self, bl_socket: PhysicalLengthBLSocket) -> None:
|
||
|
pass
|
||
|
|
||
|
####################
|
||
|
# - Blender Registration
|
||
|
####################
|
||
|
BL_REGISTER = [
|
||
|
PhysicalLengthBLSocket,
|
||
|
]
|