Page 1 of 1

Composite TOP input order

PostPosted: Wed Sep 12, 2018 8:36 pm
by velenoise
Hey everyone!

Is there any way to change the inputs order of a Composite TOP via python? I saw this post that mentions using a table to control the order, but couldn't figure out how, and they also mention not knowing about a way to directly order the inputs.


Re: Composite TOP input order

PostPosted: Fri Sep 14, 2018 4:44 pm
by rob
You should be able to directly control them with the inputConnectors members.

For example.
Place down 3 constant TOPs, and a composite TOP, and run the following in a DAT:

Code: Select all
n1 = op('constant1')
n2 = op('constant2')
n3 = op('constant3')

m = op('comp1')

#clear existing
for i in m.inputConnectors:
#set new order

Re: Composite TOP input order

PostPosted: Sat Sep 15, 2018 7:40 pm
by velenoise
Thanks rob! I was wondering if there was a way to emulate the properties panel behaviour of sending an input up, but this way should be good already.

Re: Composite TOP input order

PostPosted: Mon Sep 17, 2018 11:23 am
by rob
Not directly, but you should be able to code it with the above.