@ -2,7 +2,7 @@
bl_info = {
" name " : " City of Heroes (.geo) " ,
" author " : " TigerKat " ,
" version " : ( 0 , 1 , 2 ) ,
" version " : ( 0 , 1 , 3 ) ,
" blender " : ( 2 , 79 , 0 ) ,
" location " : " File > Import/Export, " ,
" description " : " City of Heroes (.geo) " ,
@ -55,7 +55,18 @@ class ImportGeo(bpy.types.Operator, ImportHelper):
def execute ( self , context ) :
from . import import_geo
keywords = self . as_keywords ( ignore = ( " filter_glob " , ) )
return import_geo . load ( self , context , * * keywords )
return import_geo . load ( self , context , 1.0 , * * keywords )
class ImportGeoMetric ( bpy . types . Operator , ImportHelper ) :
bl_idname = " import_scene.geo "
bl_label = " Import GEO "
filename_ext = " .geo "
filter_glob = StringProperty ( default = " *.geo " , options = { ' HIDDEN ' } )
def execute ( self , context ) :
from . import import_geo
keywords = self . as_keywords ( ignore = ( " filter_glob " , ) )
return import_geo . load ( self , context , 0.30480000376701355 , * * keywords )
class ExportGeo ( bpy . types . Operator , ExportHelper ) :
bl_idname = " export_scene.geo "
@ -68,16 +79,33 @@ class ExportGeo(bpy.types.Operator, ExportHelper):
keywords = self . as_keywords ( ignore = ( " filter_glob " ,
" check_existing " ,
) )
return export_geo . save ( self , context , * * keywords )
return export_geo . save ( self , context , 1.0 , * * keywords )
class ExportGeoMetric ( bpy . types . Operator , ExportHelper ) :
bl_idname = " export_scene.geo "
bl_label = " Export GEO "
filename_ext = " .geo "
filter_glob = StringProperty ( default = " *.geo " , options = { ' HIDDEN ' } )
def execute ( self , context ) :
from . import export_geo
keywords = self . as_keywords ( ignore = ( " filter_glob " ,
" check_existing " ,
) )
return export_geo . save ( self , context , 1.0 / 0.30480000376701355 , * * keywords )
def menu_func_import ( self , context ) :
self . layout . operator ( ImportGeo . bl_idname ,
text = " City of Heroes (.geo) " )
text = " City of Heroes (Feet) (.geo) " )
self . layout . operator ( ImportGeoMetric . bl_idname ,
text = " City of Heroes (Meters) (.geo) " )
def menu_func_export ( self , context ) :
self . layout . operator ( ExportGeo . bl_idname ,
text = " City of Heroes (.geo) " )
text = " City of Heroes (Feet) (.geo) " )
self . layout . operator ( ExportGeoMetric . bl_idname ,
text = " City of Heroes (Meters) (.geo) " )
def register ( ) :
bpy . utils . register_module ( __name__ )