25
25
"name" : "three.js format" ,
26
26
"author" : "mrdoob, kikko, alteredq, remoe, pxf, n3tfr34k" ,
27
27
"version" : (1 , 4 , 0 ),
28
- "blender" : (2 , 65 , 0 ),
28
+ "blender" : (2 , 6 , 6 ),
29
+ "api" : 35622 ,
29
30
"location" : "File > Import-Export" ,
30
31
"description" : "Import-Export three.js meshes" ,
31
32
"warning" : "" ,
@@ -201,6 +202,7 @@ def save_settings_export(properties):
201
202
202
203
"option_animation_morph" : properties .option_animation_morph ,
203
204
"option_animation_skeletal" : properties .option_animation_skeletal ,
205
+ "option_frame_index_as_time" : properties .option_frame_index_as_time ,
204
206
205
207
"option_frame_step" : properties .option_frame_step ,
206
208
"option_all_meshes" : properties .option_all_meshes ,
@@ -220,7 +222,7 @@ def save_settings_export(properties):
220
222
"option_vertices_truncate" : properties .option_vertices_truncate ,
221
223
"option_scale" : properties .option_scale ,
222
224
223
- "align_model" : properties .align_model
225
+ "align_model" : properties .align_model ,
224
226
}
225
227
226
228
fname = get_settings_fullpath ()
@@ -263,6 +265,7 @@ def restore_settings_export(properties):
263
265
264
266
properties .option_animation_morph = settings .get ("option_animation_morph" , False )
265
267
properties .option_animation_skeletal = settings .get ("option_animation_skeletal" , False )
268
+ properties .option_frame_index_as_time = settings .get ("option_frame_index_as_time" , False )
266
269
267
270
properties .option_frame_step = settings .get ("option_frame_step" , 1 )
268
271
properties .option_all_meshes = settings .get ("option_all_meshes" , True )
@@ -311,6 +314,7 @@ class ExportTHREEJS(bpy.types.Operator, ExportHelper):
311
314
312
315
option_animation_morph = BoolProperty (name = "Morph animation" , description = "Export animation (morphs)" , default = False )
313
316
option_animation_skeletal = BoolProperty (name = "Skeletal animation" , description = "Export animation (skeletal)" , default = False )
317
+ option_frame_index_as_time = BoolProperty (name = "Frame index as time" , description = "Use (original) frame index as frame time" , default = False )
314
318
315
319
option_frame_step = IntProperty (name = "Frame step" , description = "Animation frame step" , min = 1 , max = 1000 , soft_min = 1 , soft_max = 1000 , default = 1 )
316
320
option_all_meshes = BoolProperty (name = "All meshes" , description = "All meshes (merged)" , default = True )
@@ -321,7 +325,7 @@ def invoke(self, context, event):
321
325
322
326
@classmethod
323
327
def poll (cls , context ):
324
- return context .active_object is not None
328
+ return context .active_object != None
325
329
326
330
def execute (self , context ):
327
331
print ("Selected: " + context .active_object .name )
@@ -410,6 +414,8 @@ def draw(self, context):
410
414
row = layout .row ()
411
415
row .prop (self .properties , "option_animation_skeletal" )
412
416
row = layout .row ()
417
+ row .prop (self .properties , "option_frame_index_as_time" )
418
+ row = layout .row ()
413
419
row .prop (self .properties , "option_frame_step" )
414
420
layout .separator ()
415
421
@@ -450,4 +456,4 @@ def unregister():
450
456
bpy .types .INFO_MT_file_import .remove (menu_func_import )
451
457
452
458
if __name__ == "__main__" :
453
- register ()
459
+ register ()
0 commit comments