~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to release/scripts/modules/graphviz_export.py

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
            text_ls.append(text)
44
44
        text = '\n  '.join(text_ls)
45
45
 
46
 
 
47
46
    #text = text.replace('.', '.\n')
48
47
    #text = text.replace(']', ']\n')
49
48
    text = text.replace("\n", "\\n")
66
65
    print("")
67
66
    for bone in bones:
68
67
        b = arm.bones[bone]
69
 
        print(">>", bone, ["*>", "->"][b.connected], getattr(getattr(b, "parent", ""), "name", ""))
 
68
        print(">>", bone, ["*>", "->"][b.use_connect], getattr(getattr(b, "parent", ""), "name", ""))
70
69
        label = [bone]
71
70
        bone = arm.bones[bone]
72
71
 
88
87
        else:
89
88
            opts.append("fillcolor=white")
90
89
 
91
 
 
92
90
        fw('"%s" [%s];\n' % (bone.name, ','.join(opts)))
93
91
 
94
92
    fw('\n\n# Hierarchy:\n')
103
101
        parent = bone.parent
104
102
        if parent:
105
103
            parent_name = parent.name
106
 
            connected = bone.connected
 
104
            connected = bone.use_connect
107
105
        elif FAKE_PARENT:
108
106
            parent_name = 'Object::%s' % obj.name
109
107
            connected = False
162
160
                            pbone_target = rna_path_as_pbone(target.data_path)
163
161
                            rna_path_target = target.data_path
164
162
                            if pbone_target:
165
 
                                opts = ['dir=forward', "weight=1", "arrowhead=normal", "arrowtail=none", "constraint=false", 'color="blue"', "labelfontsize=4"] # ,
 
163
                                opts = ['dir=forward', "weight=1", "arrowhead=normal", "arrowtail=none", "constraint=false", 'color="blue"', "labelfontsize=4"]
166
164
                                display_source = rna_path.replace("pose.bones", "")
167
165
                                display_target = rna_path_target.replace("pose.bones", "")
168
166
                                if XTRA_INFO: