[Bf-python] filename_icon = "smf.icns"

Campbell Barton ideasman42 at gmail.com
Wed Aug 22 11:42:38 CEST 2012


Its possible of course but don't think its good to add OS specific
icons into a generic base class used by many exporters.
You can define your own mix-in class which has this property.

class IconHelper_OSX:
     filename_icon = "smf.icns"
... probably you'd want to define a string property?

 class ExportSomeData(Operator, ExportHelper, IconHelper_OSX):
     """This appears in the tooltip of the operator and in the generated docs"""
     bl_idname = "export_test.some_data"
     bl_label = "Export Some Data"

On Tue, Aug 21, 2012 at 8:28 PM, Paul Coones <paulcoones at comcast.net> wrote:
>
> Would it be possible to have a change to Blender ExportHelper to be able to:
>
> class ExportSomeData(Operator, ExportHelper):
>     """This appears in the tooltip of the operator and in the generated docs"""
>     bl_idname = "export_test.some_data"
>     bl_label = "Export Some Data"
>     filename_icon = "smf.icns"
>
> This would enable an exported file to have a custom icon applied.
>
>
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python



-- 
- Campbell



More information about the Bf-python mailing list