當前位置: 首頁>>代碼示例>>Python>>正文


Python io_utils.ExportHelper類代碼示例

本文整理匯總了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)
開發者ID:Italic-,項目名稱:blenderpython,代碼行數:7,代碼來源:io_ies2cycles.py

示例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)
開發者ID:Italic-,項目名稱:blenderpython,代碼行數:8,代碼來源:__init__.py

示例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)
開發者ID:0wade,項目名稱:three.js,代碼行數:13,代碼來源:__init__.py

示例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)
開發者ID:tazjel,項目名稱:export-selected,代碼行數:24,代碼來源:io_export_selected.py

示例6: invoke

 def invoke(self, context, event):
     self.filepath = "Production Folder"
     return ExportHelper.invoke(self, context, event)
開發者ID:Italic-,項目名稱:blenderpython,代碼行數:3,代碼來源:selections_vismaya.py

示例7: invoke

 def invoke(self, context, event):
     restore_settings_export(self.properties)
     return ExportHelper.invoke(self, context, event)
開發者ID:8bitpal,項目名稱:three.js,代碼行數:3,代碼來源:__init__.py

示例8: invoke

 def invoke(self, context, event):
     self.fill_props()
     self.prepare_filepath(context)
     return ExportHelper.invoke(self, context, event)
開發者ID:gitjiaying,項目名稱:minorProject,代碼行數:4,代碼來源:io_export_selected.py

示例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)
開發者ID:AscottW,項目名稱:io_object_mu,代碼行數:4,代碼來源:export_mu.py

示例10: invoke

 def invoke(self, context, event):
     self.fill_props()
     self.filepath = context.object.name + self.filename_ext
     return ExportHelper.invoke(self, context, event)
開發者ID:Italic-,項目名稱:blenderpython,代碼行數:4,代碼來源:io_export_selected.py

示例11: invoke

 def invoke(self, context, event):
   return ExportHelper.invoke(self, context, event)
開發者ID:sinisterchipmunk,項目名稱:jax-blender-models,代碼行數:2,代碼來源:__init__.py

示例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)
開發者ID:2lost4u,項目名稱:YABEE,代碼行數:4,代碼來源:__init__.py

示例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)
開發者ID:taniwha,項目名稱:io_object_mu,代碼行數:5,代碼來源:operators.py

示例14: invoke

	def invoke(self, context, event):
		self.restore()
		return ExportHelper.invoke(self, context, event)
開發者ID:sonicsnes,項目名稱:threejs-blender-exporter,代碼行數:3,代碼來源:__init__.py


注:本文中的bpy_extras.io_utils.ExportHelper類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。