primitives_nodes_ui.py 1007 B

1234567891011121314151617181920212223242526272829303132
  1. import bpy
  2. from bpy.types import Node
  3. from .base_definitions import GeometryPrimitiveNode
  4. from .primitives_sockets import *
  5. def TellClasses():
  6. return [
  7. GeometryCirclePrimitive,
  8. GeometryLattice,
  9. ]
  10. def default_traverse(self,socket):
  11. return None
  12. class GeometryCirclePrimitive(Node, GeometryPrimitiveNode):
  13. '''A node representing a circle primitive'''
  14. bl_idname = 'GeometryCirclePrimitive'
  15. bl_label = "Circle Primitive"
  16. bl_icon = 'NODE'
  17. initialized : bpy.props.BoolProperty(default = False)
  18. mantis_node_class_name="CirclePrimitive"
  19. socket_templates = CirclePrimitiveSockets
  20. from .primitives_sockets import LatticeSockets
  21. class GeometryLattice(Node, GeometryPrimitiveNode):
  22. '''A node representing a lattice geometry'''
  23. bl_idname = "GeometryLattice"
  24. bl_label = "Lattice"
  25. bl_icon = "NODE"
  26. initialized : bpy.props.BoolProperty(default = False)
  27. mantis_node_class_name=bl_idname
  28. socket_templates = LatticeSockets