[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23707] trunk/blender/release/scripts/ui/ space_view3d.py: missed this in last commit comments,
Campbell Barton
ideasman42 at gmail.com
Thu Oct 8 10:01:53 CEST 2009
Revision: 23707
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23707
Author: campbellbarton
Date: 2009-10-08 10:01:51 +0200 (Thu, 08 Oct 2009)
Log Message:
-----------
missed this in last commit comments,
Pattern Select operator, access from the object select menu
Glob strings like "Lear*.brown" and "Tree.0?", option for case sensitive and extend the existing selection.
currently the default string is "*" which needs to be edited in the redo-panel in the toolbox since there is no way to get a text input for python.
This replaces 2.4x's data browser Shift+F4, pattern select.
Modified Paths:
--------------
trunk/blender/release/scripts/ui/space_view3d.py
Modified: trunk/blender/release/scripts/ui/space_view3d.py
===================================================================
--- trunk/blender/release/scripts/ui/space_view3d.py 2009-10-08 07:54:20 UTC (rev 23706)
+++ trunk/blender/release/scripts/ui/space_view3d.py 2009-10-08 08:01:51 UTC (rev 23707)
@@ -1319,6 +1319,7 @@
__props__ = [
bpy.props.StringProperty(attr="pattern", name="Pattern", description="Name filter using '*' and '?' wildcard chars", maxlen= 32, default= "*"),
bpy.props.BoolProperty(attr="case_sensitive", name="Case Sensitive", description="Do a case sensitive compare", default= False),
+ bpy.props.BoolProperty(attr="extend", name="Extend", description="Extend the existing selection", default= True),
]
def execute(self, context):
@@ -1330,6 +1331,8 @@
for ob in context.visible_objects:
if pattern_match(ob.name, self.pattern):
ob.selected = True
+ elif not self.extend:
+ ob.selected = False
return ('FINISHED',)
More information about the Bf-blender-cvs
mailing list