dirkleas / rackcli

CLI for VCV Rack for managing your local rack installation and installed plugins
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

finding default and "live" geometry for plugin modules #12

Closed dirkleas closed 6 years ago

dirkleas commented 6 years ago

I've prototyped some code in a rack fork that generates much of the introspective data for rack plugins/modules. there're several modules that are dynamically resizeable once added to a patch. I'm looking for details on how to get that detail both 1) from the plugin distributions (ideally without having to instantiate ModuleWidget instances), and 2) from a loaded patch. is there something similar to gPlugins for the live patch modules? code and/or references appreciated

ps: for extra credit, how about the width of the patching window so I can do layout management in view?!

dirkleas commented 6 years ago

resizeable modules in core are consistently storing a width property in the patch json as expected, and current patch is available from settings.json via lastPath or within rack at runtime via gRackWidget->lastPath

dirkleas commented 6 years ago

fyi, latest fork adds width data to generated .../Rack/meta.json via File.Catalog, and also saves width when saving patches, stability improving -- beta quality stability. woot!

dirkleas commented 6 years ago

confirmed here that widgets can't be instantiated outside Rack main thread (e.g. not in plugin modules) and that a PR wasn't probable, so sticking with 1) my fork (preferred), or 2) DLwigglz r4xH4x + rackcli --sync/--share