Passing preferences as arguments to java-processing

I’m looking for a way to pass

run.present.bgcolor=#666666
run.present.stop.color=#cccccc

as arguments to processing-java CLI.

Is the only way to change them in preferences.txt or are there ways to pass them on the command line?

Thanks.

1 Like

Maybe a look at the source code of the processing-java CLI might help.

It’s difficult to find it though, as the project is so large. Could anyone please point me to the source file on Github? Thanks.

I found the source. It’s here: https://github.com/processing/processing/blob/master/java/src/processing/mode/java/Commander.java

It seems like there is/was a --preferences= argument planned that allows to

pass in a prefs path if that was specified

but the code is commented out. At least, for now, it doesn’t seem like there is any other option other than modifying preferences.txt directly. I think it would be a good option though. In my case, I don’t like to make these changes permanently.

1 Like