MCPcopy Create free account
hub / github.com/blender/blender / SocketSpec

Class SocketSpec

tests/python/bl_node_group_compat.py:83–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82@dataclass
83class SocketSpec():
84 name: str
85 identifier: str
86 type: str
87 subtype: str = 'NONE'
88 hide_value: bool = False
89 hide_in_modifier: bool = False
90 default_value: object = None
91 min_value: object = None
92 max_value: object = None
93 internal_links: int = 1
94 external_links: int = 1
95
96 @property
97 def base_idname(self):
98 return base_idname[self.type]
99
100 @property
101 def subtype_idname(self):
102 return subtype_idname[(self.type, self.subtype)]
103
104
105class AbstractNodeGroupInterfaceTest(unittest.TestCase):

Calls

no outgoing calls

Tested by 5