本文整理汇总了Python中bpy_extras.io_utils.ExportHelper类的典型用法代码示例。如果您正苦于以下问题:Python ExportHelper类的具体用法?Python ExportHelper怎么用?Python ExportHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ExportHelper类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: invoke
def invoke(self, context, event):
if self.image_format == 'PNG':
self.filename_ext = ".png"
else:
self.filename_ext = ".exr"
return ExportHelper.invoke(self, context, event)
示例2: invoke
def invoke(self, context, event):
self.exporter = (self.exporter_str or self.exporter) # make sure properties are up-to-date
if self.use_file_browser:
self.filepath = context.blend_data.filepath or "untitled"
self.generate_name(context)
return ExportHelper.invoke(self, context, event)
else:
return self.execute(context)
示例3: invoke
def invoke(self, context, event):
settings = context.scene.get(constants.EXPORT_SETTINGS_KEY)
if settings:
try:
restore_export_settings(self.properties, settings)
except AttributeError as e:
logging.error("Loading export settings failed:")
logging.exception(e)
logging.debug("Removed corrupted settings")
del context.scene[constants.EXPORT_SETTINGS_KEY]
return ExportHelper.invoke(self, context, event)
示例4: check
def check(self, context):
if self.md5type == '1':
self.filename_ext = '.md5camera'
self.filter_glob = '*.md5camera' # no effect?
else:
self.filename_ext = '.md5mesh'
self.filter_glob = '*.md5mesh;*.md5anim'
#print("CHECK -", self.filename)
if self.filename.startswith(('.md5camera', '.md5mesh')):
self.filename = '' #NEEDS FIX!
return ExportHelper.check(self, context)
开发者ID:RobertBeckebans,项目名称:blender-idtech4-md5,代码行数:15,代码来源:io_export_md5_codemanx_09122013j_release.py
示例5: invoke
def invoke(self, context, event):
CurrentFormatProperties._clear_props()
if self.format:
op = get_op(self.format)
op_class = type(op.get_instance())
CurrentFormatProperties._add_props(op_class)
if self.format == "wm.collada_export":
# Special case: Collada (built-in) -- has no
# explicitly defined Python properties
CurrentFormatProperties.second_life = bpy.props.BoolProperty(
name="Export for Second Life",
description="Compatibility mode for Second Life",
default=False,
)
else:
self.visible_name = "Blend"
self.filename_ext = ".blend"
self.filter_glob = "*.blend"
self.filepath = context.object.name + self.filename_ext
return ExportHelper.invoke(self, context, event)
示例6: invoke
def invoke(self, context, event):
self.filepath = "Production Folder"
return ExportHelper.invoke(self, context, event)
示例7: invoke
def invoke(self, context, event):
restore_settings_export(self.properties)
return ExportHelper.invoke(self, context, event)
示例8: invoke
def invoke(self, context, event):
self.fill_props()
self.prepare_filepath(context)
return ExportHelper.invoke(self, context, event)
示例9: invoke
def invoke(self, context, event):
if context.active_object != None:
self.filepath = context.active_object.name + self.filename_ext
return ExportHelper.invoke(self, context, event)
示例10: invoke
def invoke(self, context, event):
self.fill_props()
self.filepath = context.object.name + self.filename_ext
return ExportHelper.invoke(self, context, event)
示例11: invoke
def invoke(self, context, event):
return ExportHelper.invoke(self, context, event)
示例12: invoke
def invoke(self, context, evt):
if context.scene.yabee_settings.first_run:
context.scene.yabee_settings.reset_defaults()
return ExportHelper.invoke(self, context, evt)
示例13: invoke
def invoke(self, context, event):
obj = context.active_object
if obj != None:
self.filepath = strip_nnn(obj.name) + self.filename_ext
return ExportHelper.invoke(self, context, event)
示例14: invoke
def invoke(self, context, event):
self.restore()
return ExportHelper.invoke(self, context, event)