Bodysoulspirit's picture
Shared by on 2020.05.28 11:09

For Protocol Compositions, I needed to align layers on the screen/window edges.
Since Align Layer to Window doesn't work for Protocol Comps, you need to get the rendered composition height.

So for a given pixel width and height, it retrieves the height in Vuo Coordinates for a width of 2, in other words it converts pixels height to the height in Vuo canvas coordinates.
It also retrieves the top and bottom edges.

I know this isn't really a "Window" type, but didn't know what type it would fit better in.

Place this .c node inside your Vuo Modules folder. You can search for this node by typing BSS in the node library.

License :
Original code by ©Kosada Incorporated, released under MIT License, modified by Bodysoulspirit.
This code may be modified and distributed under the terms of the MIT License.
For more information, see https://vuo.org/license.

+0
Interesting
+0
Helpful
+0
Unique

Download

AttachmentSize
Package icon bss.window.getheightsedges.c.102.zip1.17 KB

Example

Source code

License

Other categories

Tested with

Vuo version:
OS version:

Add comment

Log in or register to post comments