Forums > MaxMSP

Enviromental parameters?

September 18, 2011 | 4:49 am

Hi, I’ve got a patcher I’m using on two different machines, which have slightly different configurations (hard drive letters/paths, monitor sizes etc.). I’d like to parameterize my patcher such that I can easily tweak the behaviour on each machine (without having to hard code both sets of values).

Is there an easy way to accomplish this? Perhaps a Max object which can read system environment variables?

Thanks,
James


September 18, 2011 | 4:55 am

jit.displays for monitor things, not sure about other variables.


September 18, 2011 | 3:39 pm

look into the screensize and gestalt objects and the "path" message to thispatcher.
this might give you enough data.

hth
hans


September 22, 2011 | 4:16 am

path to thispatcher with a little atoi/zl/itoa magic will do the trick for the folder paths. Thanks!


Viewing 4 posts - 1 through 4 (of 4 total)