Reply To: USB Button Solution

Home Forums AR Sandbox Forum USB Button Solution Reply To: USB Button Solution

#116059
ajy00
Participant

Hi
Suggest you create a directory under ~/src for your various scripts and custom items, such as ~/src/scripts

Create a new file something like weather.sh and with your text editor copy the script file from https://arsandbox.ucdavis.edu/forums/topic/usb-button-solution/#post-103570
Save and then enable execution with chmod a+x ~/src/scripts/weather.sh

Create new files for each of the conditions in weather.sh in the same directory for example:
switch-to-water.sh with the syntax
cp ~/src/scripts/SurfaceAddWaterColor-Water.fs ~ /src/SARndbox-2.5/share/Shaders/SurfacceAddWatercolor.fs
and again enable execution as above

You need to ensure you have all appropriate .fs config files saved in the same scripts directory (or appropriately referenced if they’re elsewhere). You can find versions that work from https://arsandbox.ucdavis.edu/forums/users/mkaszuba/

Once all that is in place, assign the key or button from the Tool Menu, using the option Utility/Script Executor

Hope that helps!

Comments are closed.