-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added node socket interface classes for sockets
- Loading branch information
Showing
9 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import bpy | ||
|
||
from bpy.props import StringProperty | ||
from bpy.types import NodeSocketInterface | ||
from ._base.interface_base import ScNodeSocketInterface | ||
|
||
class ScNodeSocketInterfaceArray(NodeSocketInterface, ScNodeSocketInterface): | ||
bl_idname = "ScNodeSocketInterfaceArray" | ||
bl_socket_idname = "ScNodeSocketArray" | ||
color = (0.0, 0.0, 1.0, 1.0) | ||
|
||
default_value: StringProperty(name="Default Array", default="[]") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import bpy | ||
|
||
from bpy.props import BoolProperty | ||
from bpy.types import NodeSocketInterface | ||
from ._base.interface_base import ScNodeSocketInterface | ||
|
||
class ScNodeSocketInterfaceBool(NodeSocketInterface, ScNodeSocketInterface): | ||
bl_idname = "ScNodeSocketInterfaceBool" | ||
bl_socket_idname = "ScNodeSocketBool" | ||
color = (1.0, 0.0, 0.0, 1.0) | ||
|
||
default_value: BoolProperty(name="Default Value") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import bpy | ||
|
||
from bpy.props import PointerProperty | ||
from bpy.types import NodeSocketInterface | ||
from ._base.interface_base import ScNodeSocketInterface | ||
|
||
class ScNodeSocketInterfaceCurve(NodeSocketInterface, ScNodeSocketInterface): | ||
bl_idname = "ScNodeSocketInterfaceCurve" | ||
bl_socket_idname = "ScNodeSocketCurve" | ||
color = (0.0, 0.0, 1.0, 1.0) | ||
|
||
default_value: PointerProperty(name="Default Curve", type=bpy.types.Object) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import bpy | ||
|
||
from bpy.props import FloatProperty | ||
from bpy.types import NodeSocketInterface | ||
from ._base.interface_base import ScNodeSocketInterface | ||
|
||
class ScNodeSocketInterfaceNumber(NodeSocketInterface, ScNodeSocketInterface): | ||
bl_idname = "ScNodeSocketInterfaceNumber" | ||
bl_socket_idname = "ScNodeSocketNumber" | ||
color = (0.0, 1.0, 0.0, 1.0) | ||
|
||
default_value: FloatProperty(name="Default Value") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import bpy | ||
|
||
from bpy.props import PointerProperty | ||
from bpy.types import NodeSocketInterface | ||
from ._base.interface_base import ScNodeSocketInterface | ||
|
||
class ScNodeSocketInterfaceObject(NodeSocketInterface, ScNodeSocketInterface): | ||
bl_idname = "ScNodeSocketInterfaceObject" | ||
bl_socket_idname = "ScNodeSocketObject" | ||
color = (1.0, 1.0, 1.0, 1.0) | ||
|
||
default_value: PointerProperty(name="Default Object", type=bpy.types.Object) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import bpy | ||
|
||
from bpy.props import EnumProperty | ||
from bpy.types import NodeSocketInterface | ||
from ._base.interface_base import ScNodeSocketInterface | ||
|
||
class ScNodeSocketInterfaceSelectionType(NodeSocketInterface, ScNodeSocketInterface): | ||
bl_idname = "ScNodeSocketInterfaceSelectionType" | ||
bl_socket_idname = "ScNodeSocketSelectionType" | ||
color = (0.3, 0.6, 0.9, 1.0) | ||
|
||
default_value: EnumProperty(name="Default Mode", items=[("VERT", "Vertices", "", "VERTEXSEL", 1), ("EDGE", "Edges", "", "EDGESEL", 2), ("FACE", "Faces", "", "FACESEL", 4)], options={"ENUM_FLAG"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import bpy | ||
|
||
from bpy.props import StringProperty | ||
from bpy.types import NodeSocketInterface | ||
from ._base.interface_base import ScNodeSocketInterface | ||
|
||
class ScNodeSocketInterfaceString(NodeSocketInterface, ScNodeSocketInterface): | ||
bl_idname = "ScNodeSocketInterfaceString" | ||
bl_socket_idname = "ScNodeSocketString" | ||
color = (1.0, 0.0, 1.0, 1.0) | ||
|
||
default_value: StringProperty(name="Default String") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import bpy | ||
|
||
from bpy.props import StringProperty | ||
from bpy.types import NodeSocketInterface | ||
from ._base.interface_base import ScNodeSocketInterface | ||
|
||
class ScNodeSocketInterfaceUniversal(NodeSocketInterface, ScNodeSocketInterface): | ||
bl_idname = "ScNodeSocketInterfaceUniversal" | ||
bl_socket_idname = "ScNodeSocketUniversal" | ||
color = (0.0, 0.0, 0.0, 0.0) | ||
|
||
default_value: StringProperty(name="Default Universal") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import bpy | ||
|
||
from bpy.props import FloatVectorProperty | ||
from bpy.types import NodeSocketInterface | ||
from ._base.interface_base import ScNodeSocketInterface | ||
|
||
class ScNodeSocketInterfaceVector(NodeSocketInterface, ScNodeSocketInterface): | ||
bl_idname = "ScNodeSocketInterfaceVector" | ||
bl_socket_idname = "ScNodeSocketVector" | ||
color = (1.0, 1.0, 0.0, 1.0) | ||
|
||
default_value: FloatVectorProperty(name="Default Vector") |