2
2
"name" : "Node to Python" ,
3
3
"description" : "Convert Blender node groups to a Python add-on!" ,
4
4
"author" : "Brendan Parmer" ,
5
- "version" : (2 , 2 , 0 ),
5
+ "version" : (3 , 0 , 0 ),
6
6
"blender" : (3 , 0 , 0 ),
7
7
"location" : "Node" ,
8
8
"category" : "Node" ,
9
9
}
10
10
11
11
if "bpy" in locals ():
12
12
import importlib
13
- importlib .reload (materials )
14
- importlib .reload (geo_nodes )
13
+ importlib .reload (compositor )
14
+ importlib .reload (geometry )
15
+ importlib .reload (material )
15
16
importlib .reload (options )
16
17
else :
17
- from . import materials
18
- from . import geo_nodes
18
+ from . import compositor
19
+ from . import geometry
20
+ from . import material
19
21
from . import options
20
22
21
23
import bpy
22
24
25
+
23
26
class NodeToPythonMenu (bpy .types .Menu ):
24
27
bl_idname = "NODE_MT_node_to_python"
25
28
bl_label = "Node To Python"
@@ -33,17 +36,23 @@ def draw(self, context):
33
36
layout .operator_context = 'INVOKE_DEFAULT'
34
37
35
38
36
-
37
-
38
39
classes = [NodeToPythonMenu ,
40
+ #options
39
41
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 ,
47
56
]
48
57
49
58
def register ():
0 commit comments