Open LeStahL opened 3 weeks ago
that object is not json but a class. you can use the operator "shaderInfoUniforms" to get an array that is [uniformName,value,type,uniformName,value,type....] this should be easily exportable. nowadays i would write the op differently, so it output json objects. and it could have a shader input but it was just a debug op when i wrote it
the op is stupid, let me make a new version on dev...
this is the v2 on dev.cables.gl this should be usable
Backstory: I'd like to drag around & midi control
CustomShader
uniform values in cables and then proceed to export the resulting parameter sets into my pc4k intro code. This should happen automatically to a certain degree. When trying to auto-download theCustomShader
json representation, for example using the patch below:Cables shows the following error:
A possible workaround to get the exact parameter set is to ctrl+c the CustomShader op and paste it into VSCode, which works, but is a slightly clunky workflow.
I use the version at cables.gl to reproduce.