is it possible to insert a node in between a chain with python?
i have a couple of files nodes, connected to a 1 merge, and i would like to put a color node
in between each file and the merge node using python is that possible?
or do i have to connect the color using setInput(0,the file node,0)
and then some magical way find out wich is the wire that goes to the merge and replug that to the color node???
thanks guys
8)
insert a node in between 2 nodes with python
3273 1 1- pelos
- Member
- 617 posts
- Joined: Aug. 2008
- Offline
- Anonymous
- Member
- 678 posts
- Joined: July 2005
- Offline
If nothing changed in the last 2 years you will have to use setInput().
Why magically ? When you have your file nodes you can check where they are connected. Just store to what node each file is connected, disconnect each file node, connect to them color node and use information about file node connection that you extracted on begin to reconnect merge to each color node.
Why magically ? When you have your file nodes you can check where they are connected. Just store to what node each file is connected, disconnect each file node, connect to them color node and use information about file node connection that you extracted on begin to reconnect merge to each color node.
-
- Quick Links