Enviromental parameters?

Jadie Rage's icon

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

seejayjames's icon

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

hans w. koch's icon

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

hth
hans

Jadie Rage's icon

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