[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3340] contrib/py/scripts/addons/ oscurart_tools.py: Sync selection and the others tools.
Eugenio Pignataro
info at oscurart.com.ar
Thu May 3 04:17:02 CEST 2012
Revision: 3340
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3340
Author: oscurart
Date: 2012-05-03 02:16:58 +0000 (Thu, 03 May 2012)
Log Message:
-----------
Sync selection and the others tools.
Modified Paths:
--------------
contrib/py/scripts/addons/oscurart_tools.py
Modified: contrib/py/scripts/addons/oscurart_tools.py
===================================================================
--- contrib/py/scripts/addons/oscurart_tools.py 2012-05-03 02:06:22 UTC (rev 3339)
+++ contrib/py/scripts/addons/oscurart_tools.py 2012-05-03 02:16:58 UTC (rev 3340)
@@ -63,11 +63,8 @@
col.prop(bpy.context.scene,"osc_render_tools",text="Render",icon="SCENE")
col.prop(bpy.context.scene,"osc_files_tools",text="Files",icon="IMASEL")
col.prop(bpy.context.scene,"osc_overrides_tools",text="Overrides",icon="GREASEPENCIL")
-
- # RECARGO EL SELECTION
- def __init__(self):
- select_osc()
+
# POLLS
class OscPollObject():
bl_space_type = 'VIEW_3D'
@@ -2639,7 +2636,20 @@
if (it in bpy.context.selected_objects)==False:
bpy.selection_osc.remove(it)
-
+class OscSelection(bpy.types.Header):
+ bl_label = "Selection Osc"
+ bl_space_type = "VIEW_3D"
+
+ def __init__(self):
+ select_osc()
+
+ def draw(self, context):
+ """
+ layout = self.layout
+ row = layout.row()
+ row.label("Sels: "+str(len(bpy.selection_osc)))
+ """
+
##======================================================================================FIN DE SCRIPTS
@@ -2696,4 +2706,4 @@
bpy.utils.register_class(OscApplyOverrides)
bpy.utils.register_class(OscRestoreOverrides)
bpy.utils.register_class(OscCheckOverrides)
-
+bpy.utils.register_class(OscSelection)
More information about the Bf-extensions-cvs
mailing list