oscillode/blender_maxwell/node_trees/maxwell_sim_nodes/sockets/basic/any.py

32 lines
592 B
Python
Raw Normal View History

import typing as typ
import bpy
import sympy as sp
import pydantic as pyd
from .. import base
from ... import contracts as ct
####################
# - Blender Socket
####################
class AnyBLSocket(base.MaxwellSimSocket):
socket_type = ct.SocketType.Any
bl_label = "Any"
####################
# - Socket Configuration
####################
class AnySocketDef(pyd.BaseModel):
socket_type: ct.SocketType = ct.SocketType.Any
def init(self, bl_socket: AnyBLSocket) -> None:
pass
####################
# - Blender Registration
####################
BL_REGISTER = [
AnyBLSocket,
]