create_slot#

abstract static InnerInputSlot.create_slot(osl_server: OslServer, node: Node, name: str, type_: SlotType, type_hint: str | None = None) Slot#

Create instance of new slot.

Parameters:
osl_server: OslServer

Object providing access to the optiSLang server.

nodeNode

Node to which slot belongs to.

namestr

Slot name.

type_SlotType

Slot type.

type_hintOptional[str], optional

Slot’s expected data type, by default None.

Returns:
Slot

Instance of InputSlot, OutputSlot, InnerInputSlot or InnerOutputSlot class.