#Load assets relative to plugin

7 messages · Page 1 of 1 (latest)

errant isle
#

How can I load e.g., textures relative to the plugin directory? And how can I iterate over files in a directory? readdirSync, even when using absolute paths, claims the directory does not exist.

errant bay
#

why are you trying to load files from the plugin directory

errant isle
#

I want to generate textures at runtime, using a set of base textures/masks/blend shapes etc

errant bay
#

these should either be stored inside the plugin file itself as base64 encoded images, or hosted somewhere so you can fetch them from the url

errant isle
#

Alright, thanks!

errant bay
#

i would recommend storing them inside the plugin as base64, unless this is unreasonable due to file sizes