diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-26 10:54:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-26 10:54:27 +0300 |
commit | 1f5cec709c8f79ff706eca4399583696853a3aec (patch) | |
tree | a5b8283383b7151c506ecccea3cfc7a39d90b24b /release/scripts/templates/operator_export.py | |
parent | 7a231938119f97bde0f78bd939a55274806cf1f5 (diff) |
update to background_job template to use --factory-startup option.
make all templates pep8 compliant.
Diffstat (limited to 'release/scripts/templates/operator_export.py')
-rw-r--r-- | release/scripts/templates/operator_export.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/release/scripts/templates/operator_export.py b/release/scripts/templates/operator_export.py index ef8acfeb3a3..4f950b11d01 100644 --- a/release/scripts/templates/operator_export.py +++ b/release/scripts/templates/operator_export.py @@ -1,5 +1,6 @@ import bpy + def write_some_data(context, filepath, use_some_setting): print("running write_some_data...") f = open(filepath, 'w') @@ -18,9 +19,9 @@ from bpy.props import * class ExportSomeData(bpy.types.Operator, ExportHelper): '''This appiers in the tooltip of the operator and in the generated docs.''' - bl_idname = "export.some_data" # this is important since its how bpy.ops.export.some_data is constructed + bl_idname = "export.some_data" # this is important since its how bpy.ops.export.some_data is constructed bl_label = "Export Some Data" - + # ExportHelper mixin class uses this filename_ext = ".txt" @@ -28,7 +29,7 @@ class ExportSomeData(bpy.types.Operator, ExportHelper): # List of operator properties, the attributes will be assigned # to the class instance from the operator settings before calling. - use_setting = BoolProperty(name="Example Boolean", description="Example Tooltip", default= True) + use_setting = BoolProperty(name="Example Boolean", description="Example Tooltip", default=True) type = bpy.props.EnumProperty(items=(('OPT_A', "First Option", "Description one"), ('OPT_B', "Second Option", "Description two.")), name="Example Enum", |