Example #1
0
    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)
Example #2
0
 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)
Example #3
0
    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)
	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)
 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)
 def invoke(self, context, event):
     self.filepath = "Production Folder"
     return ExportHelper.invoke(self, context, event)
 def invoke(self, context, event):
     self.filename_ext = ".blend"
     self.filepath = pfopath + "/prod/scenes/untitled"
     return ExportHelper.invoke(self, context, event)
Example #8
0
 def invoke(self, context, event):
     restore_settings_export(self.properties)
     return ExportHelper.invoke(self, context, event)
 def invoke(self, context, event):
     self.fill_props()
     self.prepare_filepath(context)
     return ExportHelper.invoke(self, context, event)
Example #10
0
 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)
 def invoke(self, context, event):
     self.fill_props()
     self.filepath = context.object.name + self.filename_ext
     return ExportHelper.invoke(self, context, event)
 def invoke(self, context, event):
   return ExportHelper.invoke(self, context, event)
Example #13
0
 def invoke(self, context, evt):
     if context.scene.yabee_settings.first_run:
         context.scene.yabee_settings.reset_defaults()
     return ExportHelper.invoke(self, context, evt)
Example #14
0
 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)
	def invoke(self, context, event):
		self.restore()
		return ExportHelper.invoke(self, context, event)