Wire - Shape's height/width?

Post your questions here and we'll all try to help.
Post Reply
subset
Posts: 46
Joined: Fri Mar 03, 2017 08:41

Wire - Shape's height/width?

Post by subset »

I'm playing around with Wire, and I'm confused about how to think about shape sizes. As far as I can tell, height=1 is the height of the screen. So they seem to be scaled relative to the screen. But the width dimension seems awkward. If the screen ratio is 16:9, I end up with height=1 and width=1.78 (which is 16.02). So it seems like I'll always have to deal with a lot decimals when thinking about widths. Or am I going about this all wrong?
77697265-4db6-4573-8aa7-42362bc44931_-_Rectangle__Edited_.png

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

Re: Wire - Shape's height/width?

Post by Zoltán »

Correct, for shapes, 1 is the height.
A patch can have dynamic size in a host like Resolume, so for generative stuff it makes sense to not think in pixels.

You can use the patchInfo node to get the patch aspect ratio for the width:
Attachments
Képernyőfotó 2022-03-21 - 9.32.39.png
Képernyőfotó 2022-03-21 - 9.32.39.png (24.24 KiB) Viewed 1492 times
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

Post Reply