[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25048] trunk/blender/release/scripts/ modules/graphviz_export.py: more small fixes

Campbell Barton ideasman42 at gmail.com
Tue Dec 1 13:43:06 CET 2009


Revision: 25048
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25048
Author:   campbellbarton
Date:     2009-12-01 13:43:06 +0100 (Tue, 01 Dec 2009)

Log Message:
-----------
more small fixes

Modified Paths:
--------------
    trunk/blender/release/scripts/modules/graphviz_export.py

Modified: trunk/blender/release/scripts/modules/graphviz_export.py
===================================================================
--- trunk/blender/release/scripts/modules/graphviz_export.py	2009-12-01 12:25:59 UTC (rev 25047)
+++ trunk/blender/release/scripts/modules/graphviz_export.py	2009-12-01 12:43:06 UTC (rev 25048)
@@ -53,7 +53,7 @@
             
             label.append("%s = %s" % (key, value))
         
-        opts = ["shape=box", "regular=1", "style=filled", "fillcolor=white", 'width="2.33"', 'height="0.35"', "fixedsize=false", 'label="%s"' % ("\\n".join(label))]
+        opts = ["shape=box", "regular=1", "style=filled", "fillcolor=white", 'width="2.33"', 'height="0.35"', "fixedsize=false", 'label="%s"' % compat_str('\n'.join(label))]
         
         fw('"%s" [%s];\n' % (bone.name, ','.join(opts)))
     
@@ -85,7 +85,7 @@
             subtarget = constraint.subtarget
             if subtarget:
                 # TODO, not internal links
-                opts = ['dir=forward', "weight=1", "arrowhead=normal", "arrowtail=none", "constraint=false", 'color="red"']
+                opts = ['dir=forward', "weight=1", "arrowhead=normal", "arrowtail=none", "constraint=false", 'color="red"', 'labelfontsize=8']
                 label = "%s\n%s" % (constraint.type, constraint.name)
                 opts.append('label="%s"' % compat_str(label))
                 fw('"%s" -> "%s" [%s] ;\n' % (subtarget, pbone.name, ','.join(opts)))
@@ -102,7 +102,7 @@
     
     animation_data = obj.animation_data
     if animation_data:
-        for fcurve_driver in obj.animation_data.drivers:
+        for fcurve_driver in animation_data.drivers:
             rna_path = fcurve_driver.rna_path
             pbone = rna_path_as_pbone(rna_path)
                 
@@ -111,7 +111,7 @@
                     pbone_target = rna_path_as_pbone(target.rna_path)
                     rna_path_target = target.rna_path
                     if pbone_target:
-                        opts = ['dir=forward', "weight=1", "arrowhead=normal", "arrowtail=none", "constraint=false", 'color="blue"'] # , 
+                        opts = ['dir=forward', "weight=1", "arrowhead=normal", "arrowtail=none", "constraint=false", 'color="blue"', "labelfontsize=8"] # , 
                         display_source = rna_path.replace("pose.bones", "")
                         display_target = rna_path_target.replace("pose.bones", "")
                         label = "%s\\n%s" % (display_source, display_target)





More information about the Bf-blender-cvs mailing list