Author: Stefan
Playing around with displaying sockets and connections infos.
Just a starting point.
Either paste the code or open the script in the console then run it and look at the prints (console and shell). Add more prints as you wish to see what kind of infos you can get, it can give you ideas of how you could use them.
code:
import flame print '-' * 30 # global node1, node2 node1 = flame.batch.create_node('Mux' ) node1.name = 'mux1' node2 = flame.batch.create_node('Mux') node2.name = 'mux2' node2.pos_x = node2.pos_x + 200 flame.batch.get_node(str(node2.name).replace("'", "")).selected = False flame.batch.get_node(str(node1.name).replace("'", "")).selected = True flame.batch.connect_nodes(node1, node1.output_sockets[0], node2, node2.input_sockets[0]) flame.batch.connect_nodes(node1, node1.output_sockets[1], node2, node2.input_sockets[1]) print "node1.sockets: ", node1.sockets print "node2.sockets: ", node2.sockets # end of script