Page 1 of 1

How does clip / connect command work

Posted: Sat Dec 25, 2021 19:03
by grog57
I find webserver and rest api extremely useful but I don't understand the clip / connect command.
I used "/ composition / layers / {layer-index} / clips / {clip-index} / connect", I connected clip 1 in layer 1 without problems, then clip 2 in layer 1. But when I try to connect again clip 1 does not connect and remains 2. Where am I wrong?
I tried the same procedure with "select" and it works perfectly. Thanks for your suggestions.

Re: How does clip / connect command work

Posted: Fri Dec 31, 2021 13:22
by Zoltán
Try using clip connect int 0 after int 1.

Re: How does clip / connect command work

Posted: Fri Dec 31, 2021 18:36
by grog57
Thank you for your replay,
with true and false it works but it is a behavior that I do not understand, if I connect clip 1 and then clip 2 it is not necessary to disconnect clip 1. If I go back, clip 1 connects only after disconnecting (with false) both clips 1 and 2.

Re: How does clip / connect command work

Posted: Mon Jan 03, 2022 13:27
by Zoltán
The triggers work like if you'd be using your mouse button on them.
So latching a clip play on, would be like click and hold a mouse button on the clip. Sending the release message would be like releasing the mouse button.

Clips from a specific layer can play it multiple modes, piano playback for example would be a good use case for the above, but clips form layer 1 can also be set to play on the first free layer, where you could have multiple clips from layer 1 playing at once.

Re: How does clip / connect command work

Posted: Wed Jan 05, 2022 12:15
by grog57
Ok, the doubt arose from the fact that SELECT works instead, I thought that CONNECT was similar regardless of the mode (normal or piano). However it is now clear. It still seems complex to me to create interfaces without the aid of special tools.