Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-02-02 01:04:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-02 01:04:33 +0300
commit039d0871716e2134913b47ec4dbdcebaefb8edcc (patch)
tree93740bd824d6587f2e61fca1658ed594934964e5 /release/scripts
parent26cfe812f8b128bf1b2beaa6b94fb4c840456024 (diff)
subtype support for properties in bpy.props.
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/io/export_3ds.py2
-rw-r--r--release/scripts/io/export_fbx.py2
-rw-r--r--release/scripts/io/export_mdd.py2
-rw-r--r--release/scripts/io/export_obj.py2
-rw-r--r--release/scripts/io/export_ply.py2
-rw-r--r--release/scripts/io/export_x3d.py2
-rw-r--r--release/scripts/modules/rna_prop_ui.py2
-rw-r--r--release/scripts/op/object_randomize_transform.py8
-rw-r--r--release/scripts/op/uv.py2
-rw-r--r--release/scripts/op/wm.py2
-rw-r--r--release/scripts/ui/properties_scene.py6
-rw-r--r--release/scripts/ui/space_userpref.py12
12 files changed, 22 insertions, 22 deletions
diff --git a/release/scripts/io/export_3ds.py b/release/scripts/io/export_3ds.py
index 5e9f4cc81be..ff93670076d 100644
--- a/release/scripts/io/export_3ds.py
+++ b/release/scripts/io/export_3ds.py
@@ -1122,7 +1122,7 @@ class Export3DS(bpy.types.Operator):
# filename = StringProperty(name="File Name", description="File name used for exporting the 3DS file", maxlen= 1024, default= ""),
path = StringProperty(name="File Path", description="File path used for exporting the 3DS file", maxlen= 1024, default= "")
- check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, hidden=True)
+ check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
def execute(self, context):
save_3ds(self.properties.path, context)
diff --git a/release/scripts/io/export_fbx.py b/release/scripts/io/export_fbx.py
index 37e74c2867a..80a240d0e44 100644
--- a/release/scripts/io/export_fbx.py
+++ b/release/scripts/io/export_fbx.py
@@ -3363,7 +3363,7 @@ class ExportFBX(bpy.types.Operator):
path = StringProperty(name="File Path", description="File path used for exporting the FBX file", maxlen= 1024, default="")
- check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, hidden=True)
+ check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
EXP_OBS_SELECTED = BoolProperty(name="Selected Objects", description="Export selected objects on visible layers", default=True)
# EXP_OBS_SCENE = BoolProperty(name="Scene Objects", description="Export all objects in this scene", default=True)
diff --git a/release/scripts/io/export_mdd.py b/release/scripts/io/export_mdd.py
index 56601c199b9..c2599b3e325 100644
--- a/release/scripts/io/export_mdd.py
+++ b/release/scripts/io/export_mdd.py
@@ -160,7 +160,7 @@ class ExportMDD(bpy.types.Operator):
# List of operator properties, the attributes will be assigned
# to the class instance from the operator settings before calling.
path = StringProperty(name="File Path", description="File path used for exporting the MDD file", maxlen=1024)
- check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, hidden=True)
+ check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
fps = IntProperty(name="Frames Per Second", description="Number of frames/second", min=minfps, max=maxfps, default=25)
start_frame = IntProperty(name="Start Frame", description="Start frame for baking", min=minframe, max=maxframe, default=1)
end_frame = IntProperty(name="End Frame", description="End frame for baking", min=minframe, max=maxframe, default=250)
diff --git a/release/scripts/io/export_obj.py b/release/scripts/io/export_obj.py
index ea076e3da5d..abc7c5a6379 100644
--- a/release/scripts/io/export_obj.py
+++ b/release/scripts/io/export_obj.py
@@ -897,7 +897,7 @@ class ExportOBJ(bpy.types.Operator):
# to the class instance from the operator settings before calling.
path = StringProperty(name="File Path", description="File path used for exporting the OBJ file", maxlen= 1024, default= "")
- check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, hidden=True)
+ check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
# context group
use_selection = BoolProperty(name="Selection Only", description="", default= False)
diff --git a/release/scripts/io/export_ply.py b/release/scripts/io/export_ply.py
index 7c1f1d5a9f3..d8f9b690c9f 100644
--- a/release/scripts/io/export_ply.py
+++ b/release/scripts/io/export_ply.py
@@ -275,7 +275,7 @@ class ExportPLY(bpy.types.Operator):
path = StringProperty(name="File Path", description="File path used for exporting the PLY file", maxlen=1024, default="")
- check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, hidden=True)
+ check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
use_modifiers = BoolProperty(name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default=True)
use_normals = BoolProperty(name="Normals", description="Export Normals for smooth and hard shaded faces", default=True)
use_uvs = BoolProperty(name="UVs", description="Exort the active UV layer", default=True)
diff --git a/release/scripts/io/export_x3d.py b/release/scripts/io/export_x3d.py
index 5e355001eb1..b95ed4bedb2 100644
--- a/release/scripts/io/export_x3d.py
+++ b/release/scripts/io/export_x3d.py
@@ -1227,7 +1227,7 @@ class ExportX3D(bpy.types.Operator):
# List of operator properties, the attributes will be assigned
# to the class instance from the operator settings before calling.
path = StringProperty(name="File Path", description="File path used for exporting the X3D file", maxlen= 1024, default= "")
- check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, hidden=True)
+ check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
apply_modifiers = BoolProperty(name="Apply Modifiers", description="Use transformed mesh data from each object.", default=True)
triangulate = BoolProperty(name="Triangulate", description="Triangulate quads.", default=False)
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py
index a9e50592059..47a516127cc 100644
--- a/release/scripts/modules/rna_prop_ui.py
+++ b/release/scripts/modules/rna_prop_ui.py
@@ -140,7 +140,7 @@ from bpy.props import *
rna_path = StringProperty(name="Property Edit",
- description="Property path edit", maxlen=1024, default="", hidden=True)
+ description="Property path edit", maxlen=1024, default="", options={'HIDDEN'})
rna_value = StringProperty(name="Property Value",
description="Property value edit", maxlen=1024, default="")
diff --git a/release/scripts/op/object_randomize_transform.py b/release/scripts/op/object_randomize_transform.py
index c1ce6867894..c769c812313 100644
--- a/release/scripts/op/object_randomize_transform.py
+++ b/release/scripts/op/object_randomize_transform.py
@@ -93,16 +93,16 @@ class RandomizeLocRotSize(bpy.types.Operator):
use_loc = BoolProperty(name="Randomize Location",
description="Randomize the scale values", default=True)
- loc = FloatVectorProperty(name="Location",
+ sdfwefreloc = FloatVectorProperty(name="Location",
description="Maximun distance the objects can spread over each axis",
- default=(0.0, 0.0, 0.0), min=-100.0, max=100.0)
+ default=(0.0, 0.0, 0.0), min=-100.0, max=100.0, subtype='TRANSLATION')
use_rot = BoolProperty(name="Randomize Rotation",
description="Randomize the rotation values", default=True)
rot = FloatVectorProperty(name="Rotation",
description="Maximun rotation over each axis",
- default=(0.0, 0.0, 0.0), min=-180.0, max=180.0)
+ default=(0.0, 0.0, 0.0), min=-180.0, max=180.0, subtype='TRANSLATION')
use_scale = BoolProperty(name="Randomize Scale",
description="Randomize the scale values", default=True)
@@ -116,7 +116,7 @@ class RandomizeLocRotSize(bpy.types.Operator):
scale = FloatVectorProperty(name="Scale",
description="Maximum scale randomization over each axis",
- default=(0.0, 0.0, 0.0), min=-100.0, max=100.0)
+ default=(0.0, 0.0, 0.0), min=-100.0, max=100.0, subtype='TRANSLATION')
def execute(self, context):
from math import radians
diff --git a/release/scripts/op/uv.py b/release/scripts/op/uv.py
index c02b14c8e55..4e55f538a45 100644
--- a/release/scripts/op/uv.py
+++ b/release/scripts/op/uv.py
@@ -31,7 +31,7 @@ class ExportUVLayout(bpy.types.Operator):
bl_undo = True
path = StringProperty(name="File Path", description="File path used for exporting the SVG file", maxlen=1024, default="")
- check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, hidden=True)
+ check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
only_selected = BoolProperty(name="Only Selected", description="Export Only the selected UVs", default=False)
def poll(self, context):
diff --git a/release/scripts/op/wm.py b/release/scripts/op/wm.py
index 86e7f2e7bde..05df1cd4327 100644
--- a/release/scripts/op/wm.py
+++ b/release/scripts/op/wm.py
@@ -291,7 +291,7 @@ class WM_OT_context_cycle_enum(bpy.types.Operator):
return {'FINISHED'}
doc_id = StringProperty(name="Doc ID",
- description="", maxlen=1024, default="", hidden=True)
+ description="", maxlen=1024, default="", options={'HIDDEN'})
doc_new = StringProperty(name="Edit Description",
description="", maxlen=1024, default="")
diff --git a/release/scripts/ui/properties_scene.py b/release/scripts/ui/properties_scene.py
index 7a936168961..3a29381fe77 100644
--- a/release/scripts/ui/properties_scene.py
+++ b/release/scripts/ui/properties_scene.py
@@ -235,9 +235,9 @@ class ANIM_OT_keying_set_export(bpy.types.Operator):
path = bpy.props.StringProperty(name="File Path", description="File path to write file to.")
filename = bpy.props.StringProperty(name="File Name", description="Name of the file.")
directory = bpy.props.StringProperty(name="Directory", description="Directory of the file.")
- filter_folder = bpy.props.BoolProperty(name="Filter folders", description="", default=True, hidden=True)
- filter_text = bpy.props.BoolProperty(name="Filter text", description="", default=True, hidden=True)
- filter_python = bpy.props.BoolProperty(name="Filter python", description="", default=True, hidden=True)
+ filter_folder = bpy.props.BoolProperty(name="Filter folders", description="", default=True, options={'HIDDEN'})
+ filter_text = bpy.props.BoolProperty(name="Filter text", description="", default=True, options={'HIDDEN'})
+ filter_python = bpy.props.BoolProperty(name="Filter python", description="", default=True, options={'HIDDEN'})
def execute(self, context):
if not self.properties.path:
diff --git a/release/scripts/ui/space_userpref.py b/release/scripts/ui/space_userpref.py
index 97dd369b228..712ca469346 100644
--- a/release/scripts/ui/space_userpref.py
+++ b/release/scripts/ui/space_userpref.py
@@ -1502,9 +1502,9 @@ class WM_OT_keyconfig_import(bpy.types.Operator):
path = bpy.props.StringProperty(name="File Path", description="File path to write file to.")
filename = bpy.props.StringProperty(name="File Name", description="Name of the file.")
directory = bpy.props.StringProperty(name="Directory", description="Directory of the file.")
- filter_folder = bpy.props.BoolProperty(name="Filter folders", description="", default=True, hidden=True)
- filter_text = bpy.props.BoolProperty(name="Filter text", description="", default=True, hidden=True)
- filter_python = bpy.props.BoolProperty(name="Filter python", description="", default=True, hidden=True)
+ filter_folder = bpy.props.BoolProperty(name="Filter folders", description="", default=True, options={'HIDDEN'})
+ filter_text = bpy.props.BoolProperty(name="Filter text", description="", default=True, options={'HIDDEN'})
+ filter_python = bpy.props.BoolProperty(name="Filter python", description="", default=True, options={'HIDDEN'})
keep_original = bpy.props.BoolProperty(name="Keep original", description="Keep original file after copying to configuration folder", default=True)
@@ -1561,9 +1561,9 @@ class WM_OT_keyconfig_export(bpy.types.Operator):
path = bpy.props.StringProperty(name="File Path", description="File path to write file to.")
filename = bpy.props.StringProperty(name="File Name", description="Name of the file.")
directory = bpy.props.StringProperty(name="Directory", description="Directory of the file.")
- filter_folder = bpy.props.BoolProperty(name="Filter folders", description="", default=True, hidden=True)
- filter_text = bpy.props.BoolProperty(name="Filter text", description="", default=True, hidden=True)
- filter_python = bpy.props.BoolProperty(name="Filter python", description="", default=True, hidden=True)
+ filter_folder = bpy.props.BoolProperty(name="Filter folders", description="", default=True, options={'HIDDEN'})
+ filter_text = bpy.props.BoolProperty(name="Filter text", description="", default=True, options={'HIDDEN'})
+ filter_python = bpy.props.BoolProperty(name="Filter python", description="", default=True, options={'HIDDEN'})
def execute(self, context):
if not self.properties.path: