OSC message order on clip change in same layer

Post your questions here and we'll all try to help.
Post Reply
Cunabula
Posts: 6
Joined: Sat Jan 08, 2022 19:38

OSC message order on clip change in same layer

Post by Cunabula »

Hello,

Possibly very niche problem but here goes:

Is it possible to change the order that clip connected messages are sent when changing clips in a layer? I'm asking because what I actually want to be able to tell is whether a layer is currently playing a clip or not and I can't see a layer level message for that information

From what I can see, OSC messages regarding clip state are sent in numerical order by clip

So changing from say Layer 1, Clip 1 to Layer 1, Clip 2 the OSC messages sent out are:

/composition/layers/1/clips/1/connected : 1
/composition/layers/1/clips/2/connected : 3


This is great, any most recent message from a layer with an argument > 2, there's a clip playing in that layer.

The problem is if you want to go to a lower numbered clip then the messages on transition are

/composition/layers/1/clips/1/connected : 3
/composition/layers/1/clips/2/connected : 1


It would be very helpful if they were instead always in the order:

Clip Stopping
Clip Starting


Then you'd have the current state of the layer without creating a new type of OSC message or having do anything fiddly with how you're handling the messages externally, which I expect I'm about to do.

Anyway, said it would be a bit niche, but it would be helpful :)

Zoltán
Team Resolume
Posts: 7800
Joined: Thu Jan 09, 2014 13:08
Location: Székesfehérvár, Hungary

Re: OSC message order on clip change in same layer

Post by Zoltán »

You can have two clips playing in a layer, during a transition. A clip which is exiting, would send the stop after the start of the new clip.

/connected address has 5 states,
0= empty slot,
1=clip present, not connected or previewed
2=clip previewed, but not connected
3=connected, but not previewed,
4=clip previewed and connected.

A clip placed in a layer can play in a different layer, with free layer or active layer target, or by droppign it to a specific layer, so you can have multiple clips giving >2

You can do a query like /composition/layers/*/clips/*/connected "?" to get all clip states
Software developer, Sound Engineer,
Control Your show with ”Enter” - multiple Resolume servers at once - SMPTE/MTC column launch
try for free: http://programs.palffyzoltan.hu

Cunabula
Posts: 6
Joined: Sat Jan 08, 2022 19:38

Re: OSC message order on clip change in same layer

Post by Cunabula »

Thanks for getting back to me Zoltan, that makes perfect sense and I just hadn't considered it even though I do use transitions. Sometimes I'm super clever.

I did get round it pretty easily with a script I'm working on so it wasn't that big a deal in any case.

Post Reply