[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15408] branches/soc-2008-djd/release/ scripts: listing parents, but no object has materials, ipos, etc

Dhanannjay Deo dhandeo at gmail.com
Wed Jul 2 22:44:22 CEST 2008


Revision: 15408
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15408
Author:   djd
Date:     2008-07-02 22:44:13 +0200 (Wed, 02 Jul 2008)

Log Message:
-----------
listing parents, but no object has materials, ipos,  etc

Modified Paths:
--------------
    branches/soc-2008-djd/release/scripts/connections.txt
    branches/soc-2008-djd/release/scripts/dump_libdata.py

Modified: branches/soc-2008-djd/release/scripts/connections.txt
===================================================================
--- branches/soc-2008-djd/release/scripts/connections.txt	2008-07-02 20:28:49 UTC (rev 15407)
+++ branches/soc-2008-djd/release/scripts/connections.txt	2008-07-02 20:44:13 UTC (rev 15408)
@@ -4,3 +4,29 @@
 IPO contains curve/s
 Lamp contain lampdata
 mesh contains direct data + planes ?
+
+Bpy_data contains sequences for 
+
+scenes, 
+objects, 
+meshes, 
+curve, 
+metaball, 
+material, 
+texture, 
+image, 
+lattice, 
+lamp, 
+camera, 
+ipo, 
+world, 
+font, 
+text, 
+sound, 
+groups, 
+armatures, 
+actions
+
+
+each object contains may contain dataBlock
+Mesh, Lamp, Camera etc
\ No newline at end of file

Modified: branches/soc-2008-djd/release/scripts/dump_libdata.py
===================================================================
--- branches/soc-2008-djd/release/scripts/dump_libdata.py	2008-07-02 20:28:49 UTC (rev 15407)
+++ branches/soc-2008-djd/release/scripts/dump_libdata.py	2008-07-02 20:44:13 UTC (rev 15408)
@@ -25,17 +25,29 @@
 print bpy.data.scenes
 
 for ob in bpy.data.scenes:
-    print 'Members of Scene ..'
+    print 'Members of Scene ..%d objects'%len(ob.objects)
+    print 'Total objects .. %d'%len(bpy.data.objects)
     print ob;
+    
     for anObject in ob.objects:
-        print " %s" % type(anObject)
+        #~ print type(anObject)
         #~ print anObject.getAllProperties()  
         print " %s"%anObject.getName()        
         
         if anObject.getData():
             print " \t%s"%anObject.getData()
+            
+        if anObject.getIpo():
+            print " \tIPO%s"%anObject.getIpo().getName()
         
+        if anObject.getMaterials():
+            mats = anObject.getMaterials()
+            print " \tIPO%s"%len(mats)
+        
+        if anObject.getParent():
+            print ' \tParent:%s'%anObject.getParent().getName()
             
+            
         #~ for aProperty in anObject.getAllProperties()  
             #~ print aProperty 
     





More information about the Bf-blender-cvs mailing list