22 "name" : "Node to Python" ,
33 "description" : "Convert Blender node groups to a Python add-on!" ,
44 "author" : "Brendan Parmer" ,
5- "version" : (2 , 2 , 0 ),
5+ "version" : (3 , 0 , 0 ),
66 "blender" : (3 , 0 , 0 ),
77 "location" : "Node" ,
88 "category" : "Node" ,
99}
1010
1111if "bpy" in locals ():
1212 import importlib
13- importlib .reload (materials )
14- importlib .reload (geo_nodes )
13+ importlib .reload (compositor )
14+ importlib .reload (geometry )
15+ importlib .reload (material )
1516 importlib .reload (options )
1617else :
17- from . import materials
18- from . import geo_nodes
18+ from . import compositor
19+ from . import geometry
20+ from . import material
1921 from . import options
2022
2123import bpy
2224
25+
2326class NodeToPythonMenu (bpy .types .Menu ):
2427 bl_idname = "NODE_MT_node_to_python"
2528 bl_label = "Node To Python"
@@ -33,17 +36,23 @@ def draw(self, context):
3336 layout .operator_context = 'INVOKE_DEFAULT'
3437
3538
36-
37-
3839classes = [NodeToPythonMenu ,
40+ #options
3941 options .NTPOptions ,
40- geo_nodes .GeoNodesToPython ,
41- geo_nodes .SelectGeoNodesMenu ,
42- geo_nodes .GeoNodesToPythonPanel ,
43- materials .MaterialToPython ,
44- materials .SelectMaterialMenu ,
45- materials .MaterialToPythonPanel ,
46- options .NTPOptionsPanel
42+ options .NTPOptionsPanel ,
43+ #compositor
44+ compositor .operator .NTPCompositorOperator ,
45+ compositor .ui .NTPCompositorScenesMenu ,
46+ compositor .ui .NTPCompositorGroupsMenu ,
47+ compositor .ui .NTPCompositorPanel ,
48+ #geometry
49+ geometry .operator .NTPGeoNodesOperator ,
50+ geometry .ui .NTPGeoNodesMenu ,
51+ geometry .ui .NTPGeoNodesPanel ,
52+ #material
53+ material .operator .NTPMaterialOperator ,
54+ material .ui .NTPMaterialMenu ,
55+ material .ui .NTPMaterialPanel ,
4756 ]
4857
4958def register ():
0 commit comments