本文整理汇总了Python中bpy_extras.io_utils.ExportHelper.invoke方法的典型用法代码示例。如果您正苦于以下问题:Python ExportHelper.invoke方法的具体用法?Python ExportHelper.invoke怎么用?Python ExportHelper.invoke使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类bpy_extras.io_utils.ExportHelper
的用法示例。
在下文中一共展示了ExportHelper.invoke方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: invoke
# 需要导入模块: from bpy_extras.io_utils import ExportHelper [as 别名]
# 或者: from bpy_extras.io_utils.ExportHelper import invoke [as 别名]
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
# 需要导入模块: from bpy_extras.io_utils import ExportHelper [as 别名]
# 或者: from bpy_extras.io_utils.ExportHelper import invoke [as 别名]
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
# 需要导入模块: from bpy_extras.io_utils import ExportHelper [as 别名]
# 或者: from bpy_extras.io_utils.ExportHelper import invoke [as 别名]
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: invoke
# 需要导入模块: from bpy_extras.io_utils import ExportHelper [as 别名]
# 或者: from bpy_extras.io_utils.ExportHelper import invoke [as 别名]
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)
示例5: invoke
# 需要导入模块: from bpy_extras.io_utils import ExportHelper [as 别名]
# 或者: from bpy_extras.io_utils.ExportHelper import invoke [as 别名]
def invoke(self, context, event):
self.filepath = "Production Folder"
return ExportHelper.invoke(self, context, event)
示例6: invoke
# 需要导入模块: from bpy_extras.io_utils import ExportHelper [as 别名]
# 或者: from bpy_extras.io_utils.ExportHelper import invoke [as 别名]
def invoke(self, context, event):
restore_settings_export(self.properties)
return ExportHelper.invoke(self, context, event)
示例7: invoke
# 需要导入模块: from bpy_extras.io_utils import ExportHelper [as 别名]
# 或者: from bpy_extras.io_utils.ExportHelper import invoke [as 别名]
def invoke(self, context, event):
self.fill_props()
self.prepare_filepath(context)
return ExportHelper.invoke(self, context, event)
示例8: invoke
# 需要导入模块: from bpy_extras.io_utils import ExportHelper [as 别名]
# 或者: from bpy_extras.io_utils.ExportHelper import invoke [as 别名]
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)
示例9: invoke
# 需要导入模块: from bpy_extras.io_utils import ExportHelper [as 别名]
# 或者: from bpy_extras.io_utils.ExportHelper import invoke [as 别名]
def invoke(self, context, event):
self.fill_props()
self.filepath = context.object.name + self.filename_ext
return ExportHelper.invoke(self, context, event)
示例10: invoke
# 需要导入模块: from bpy_extras.io_utils import ExportHelper [as 别名]
# 或者: from bpy_extras.io_utils.ExportHelper import invoke [as 别名]
def invoke(self, context, event):
return ExportHelper.invoke(self, context, event)
示例11: invoke
# 需要导入模块: from bpy_extras.io_utils import ExportHelper [as 别名]
# 或者: from bpy_extras.io_utils.ExportHelper import invoke [as 别名]
def invoke(self, context, evt):
if context.scene.yabee_settings.first_run:
context.scene.yabee_settings.reset_defaults()
return ExportHelper.invoke(self, context, evt)
示例12: invoke
# 需要导入模块: from bpy_extras.io_utils import ExportHelper [as 别名]
# 或者: from bpy_extras.io_utils.ExportHelper import invoke [as 别名]
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)
示例13: invoke
# 需要导入模块: from bpy_extras.io_utils import ExportHelper [as 别名]
# 或者: from bpy_extras.io_utils.ExportHelper import invoke [as 别名]
def invoke(self, context, event):
self.restore()
return ExportHelper.invoke(self, context, event)