primitives_nodes_ui.py 891 B

123456789101112131415161718192021222324252627282930
  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. mantis_node_class_name="CirclePrimitive"
  18. socket_templates = CirclePrimitiveSockets
  19. from .primitives_sockets import LatticeSockets
  20. class GeometryLattice(Node, GeometryPrimitiveNode):
  21. '''A node representing a lattice geometry'''
  22. bl_idname = "GeometryLattice"
  23. bl_label = "Lattice"
  24. bl_icon = "NODE"
  25. mantis_node_class_name=bl_idname
  26. socket_templates = LatticeSockets