2024-02-14 12:33:40 +01:00
|
|
|
import typing as typ
|
|
|
|
|
|
|
|
import bpy
|
|
|
|
import sympy as sp
|
|
|
|
import pydantic as pyd
|
|
|
|
|
|
|
|
from .. import base
|
2024-03-10 11:56:37 +01:00
|
|
|
from ... import contracts as ct
|
2024-02-14 12:33:40 +01:00
|
|
|
|
|
|
|
####################
|
|
|
|
# - Blender Socket
|
|
|
|
####################
|
2024-03-10 11:56:37 +01:00
|
|
|
class AnyBLSocket(base.MaxwellSimSocket):
|
|
|
|
socket_type = ct.SocketType.Any
|
2024-02-14 12:33:40 +01:00
|
|
|
bl_label = "Any"
|
|
|
|
|
|
|
|
####################
|
|
|
|
# - Socket Configuration
|
|
|
|
####################
|
|
|
|
class AnySocketDef(pyd.BaseModel):
|
2024-03-10 11:56:37 +01:00
|
|
|
socket_type: ct.SocketType = ct.SocketType.Any
|
2024-02-14 12:33:40 +01:00
|
|
|
|
|
|
|
def init(self, bl_socket: AnyBLSocket) -> None:
|
|
|
|
pass
|
|
|
|
|
|
|
|
####################
|
|
|
|
# - Blender Registration
|
|
|
|
####################
|
|
|
|
BL_REGISTER = [
|
|
|
|
AnyBLSocket,
|
|
|
|
]
|