def opLink(fp, child, parent, channel, config): cid, _ = getId(child) pid, _ = getId(parent) if config.binary: import fbx_binary elem = fbx_binary.get_child_element(fp, 'Connections') fbx_binary.elem_connection(elem, b"OP", cid, pid, channel) return fp.write(' ;%s, %s\n' % (child, parent) + ' C: "OP",%d,%d, "%s"\n' % (cid, pid, channel) + '\n')
def opLink(fp, child, parent, channel, config): cid,_ = getId(child) pid,_ = getId(parent) if config.binary: import fbx_binary elem = fbx_binary.get_child_element(fp, 'Connections') fbx_binary.elem_connection(elem, b"OP", cid, pid, channel) return fp.write( ' ;%s, %s\n' % (child, parent) + ' C: "OP",%d,%d, "%s"\n' % (cid, pid, channel) + '\n')