First time here? Check out the FAQ!
x

Does Kyma send the VCS size over OSC?

0 votes
69 views
I never know what question to write here once I have asked the question ! lol

 

So, yeah, like if the VCS is resized, the widget layuout offsets are all absolute pixels aren't they? So we'd need to know what the parent frame is, to figure out a normalised location. But not sure if that ever gets sent?
asked Jan 29 in Controllers, OSC & MIDI by cristian-vogel (Master) (8,570 points)

1 Answer

0 votes
 
Best answer

When you enumerate the VCS widgets via OSC (using message: /osc/widget,i), one of the widget responses will be an Association entry with "screenRectangle" as the key; you can use the values in the LayoutFrame to construct the screen rectangle.

Here's an example:

{

    creationClass = Association;

    key = screenRectangle;

    value =     {

        bottomFraction = 0;

        bottomOffset = 669;

        creationClass = LayoutFrame;

        leftFraction = 0;

        leftOffset = 0;

        rightFraction = 0;

        rightOffset = 1162;

        topFraction = 0;

        topOffset = 0;

    };

}

This describes a screen rectangle of (0 @ 0) corner: (1162 @ 669).

answered Jan 29 by ssc (Savant) (129,200 points)
selected Feb 10 by cristian-vogel
Thanks. But I don't see this getting sent when the VCS window actually  changes?

It seems to only get sent once.
...