Enviromental parameters?

Sep 18, 2011 at 4:49am

Enviromental parameters?

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

#58918
Sep 18, 2011 at 4:55am

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

#211697
Sep 18, 2011 at 3:39pm

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

hth
hans

#211698
Sep 22, 2011 at 4:16am

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

#211699

You must be logged in to reply to this topic.