@@ -32,6 +32,7 @@ def INPUT_TYPES(s):
3232 RETURN_NAMES = ("image" , "mask" , "mesh_path" )
3333
3434 FUNCTION = "process"
35+ EXPERIMENTAL = True
3536
3637 CATEGORY = "3d"
3738
@@ -72,6 +73,7 @@ def INPUT_TYPES(s):
7273 RETURN_NAMES = ("image" , "mask" , "mesh_path" )
7374
7475 FUNCTION = "process"
76+ EXPERIMENTAL = True
7577
7678 CATEGORY = "3d"
7779
@@ -84,12 +86,39 @@ def process(self, model_file, image, **kwargs):
8486
8587 return output_image , output_mask , model_file ,
8688
89+ class Preview3D ():
90+ @classmethod
91+ def INPUT_TYPES (s ):
92+ return {"required" : {
93+ "model_file" : ("STRING" , {"default" : "" , "multiline" : False }),
94+ "show_grid" : ([True , False ],),
95+ "camera_type" : (["perspective" , "orthographic" ],),
96+ "view" : (["front" , "right" , "top" , "isometric" ],),
97+ "material" : (["original" , "normal" , "wireframe" , "depth" ],),
98+ "bg_color" : ("STRING" , {"default" : "#000000" , "multiline" : False }),
99+ "light_intensity" : ("INT" , {"default" : 10 , "min" : 1 , "max" : 20 , "step" : 1 }),
100+ "up_direction" : (["original" , "-x" , "+x" , "-y" , "+y" , "-z" , "+z" ],),
101+ }}
102+
103+ OUTPUT_NODE = True
104+ RETURN_TYPES = ()
105+
106+ CATEGORY = "3d"
107+
108+ FUNCTION = "process"
109+ EXPERIMENTAL = True
110+
111+ def process (self , model_file , ** kwargs ):
112+ return {"ui" : {"model_file" : [model_file ]}, "result" : ()}
113+
87114NODE_CLASS_MAPPINGS = {
88115 "Load3D" : Load3D ,
89- "Load3DAnimation" : Load3DAnimation
116+ "Load3DAnimation" : Load3DAnimation ,
117+ "Preview3D" : Preview3D
90118}
91119
92120NODE_DISPLAY_NAME_MAPPINGS = {
93121 "Load3D" : "Load 3D" ,
94- "Load3DAnimation" : "Load 3D - Animation"
122+ "Load3DAnimation" : "Load 3D - Animation" ,
123+ "Preview3D" : "Preview 3D"
95124}
0 commit comments