-
Shouldn't centre be spelled center?
What?!? No!! You heathen ... sheesh! See also colour and through ...
-
What happens if I specify an X location relative to a horizontal guide?
Nothing. Well, technically you consign your widget to the ninth level of hell for all infinity and quite possibly break the Internet, but other than that nothing.
-
Ok, but then what if I specify a Y location relative to a vertical guide?
Cthulhu is so coming to get you...
-
Can I put a 'load script' command in a script file?
Absolutely no idea. Try it and if you live through the experience please file an issue to update the FAQ.
-
Why can't I do X?
"Because it's wrong!" - BTVS.
-
I forgot to save the project as a script and now I want to run the script and ...
Oh no!! Woe is you!
Well, actually it happens to the best of us but luckily the project .vpd is straight JSON and it so happens the script is also stored in that so as long as you have the project file all is not lost.
If you have jq installed then the command to extract the script is:
jq -r '.script[]' <<vpd file>>
.vpz files are just gzipped versions of .vpd files so you just need to gunzip them first:
gunzip --uncompress --keep --suffix vpz -c [vpz file] > [vpd file] jq -r '.script[]' [vpd file]
If you don't have jq installed any text editor (but not emacs) will do - the script lines are right at the bottom of the file but you'll have do some cleaning up. Probably easier just to install jq.
-
What's with that weird-ass 0.338 scaling factor in the parts SVGs?
Despite the VCV developer guide emphasizing the use of millimeters, the VCV core and fundamental components are apparently designed for a panel size of 15px by 380px (cf. https://community.vcvrack.com/t/scaling-of-rack-controls-in-svg/22339). VPD being a well-behaved thing that follows the rules, uses a panel size of 5.08mm by 128.5mm. Scaling the widgets from the core and fundamental components:
128.5/380 = 0.338