<verts> Tag in preset file (.xml)

FFGL, OSC, GLSL. If you like abbreviations, this is the forum for you
Post Reply
onjackstalbeck
Posts: 3
Joined: Mon Aug 26, 2013 13:52

<verts> Tag in preset file (.xml)

Post by onjackstalbeck »

Hi guys, I'm trying to make a tool to export my resolume presets to another software and vise versa. But I'm confused with the <verts> tag in XML. How it works?

Joris
Posts: 5186
Joined: Fri May 22, 2009 11:38

Re: <verts> Tag in preset file (.xml)

Post by Joris »

It's the x and y coordinates for each vertex point and bezier point, arranged left to right, top to bottom, x first, y second, normalized to the current output window resolution.

The thing that probably throws you off is the extra sets of bezier points. These are stored in the XML, even if you don't use bezier mode in the GUI. So if you have a single rect with four warp points, you'll have 24 values: 12 sets of x y coordinates: 4 for the corner points, and 8 for the bezier points ( 2 bezier points for each corner point ).

onjackstalbeck
Posts: 3
Joined: Mon Aug 26, 2013 13:52

Re: <verts> Tag in preset file (.xml)

Post by onjackstalbeck »

Thank you!!!!! :D

Post Reply