Getdir / symbolic paths in 32/64 bit install systems

Hey guys,

any ideas of a surefire way to handle users who have 32 and 64 bit installs, the getdir commnads and symbolic pathnames give me the 32bit folder always.

I can muddle my way through to a solution but I thought I’d chirp up and see if any of you chaps have been through this same sequence before.

cheers in advance!

cw

Yeah, this can be a bit of a hassle. What’s the context you need to do this in? Are you in MaxScript, Python, C, other?

hi adam,

The precise context is for maxscripts referring to assets deployed when the script is installed. At the moment all the hokey and clunky scripts I have ever done have been fine using $scripts ot getdir #scripts because there was no 32bit / 64bit distinction.

I can work something out but I was sort of hoping there was something obvious I missed. :frowning:

I guess I’m not clear what your exact problem is. I have both 32 and 64-bit releases of 3ds Max 2010 installed. “getdir #scripts” returns the appropriate folder for me in each.

In Max 32-bit:
getdir #scripts
“D:\3ds Max 2010\scripts”

In Max 64-bit:
getdir #scripts
“D:\3ds Max 2010 64-bit\scripts”

I’m probably missing something key, however.

edit: Oops, misunderstood the question… was going to pipe up about just using is64bitApplication(), but that’s not what you were asking. :slight_smile:

[QUOTE=Adam Pletcher;4084]I guess I’m not clear what your exact problem is. I have both 32 and 64-bit releases of 3ds Max 2010 installed. “getdir #scripts” returns the appropriate folder for me in each.

In Max 32-bit:
getdir #scripts
“D:\3ds Max 2010\scripts”

In Max 64-bit:
getdir #scripts
“D:\3ds Max 2010 64-bit\scripts”

I’m probably missing something key, however.[/QUOTE]

if you are Adam, then i am too, that’s exactly how i set my scripts up, and i mostly write on a 32bit laptop and deploy on 64bit systems.

hm, could be a case of fuzzy headedness, let me double check for a second. -

damn you’re exactly correct!

something strange has been happening when i start 64bit max is all! i was starting it indirectly and something had got tangled up in that process, starting 32bit each time instead. No wonder i was getting the same path each time!

I feel a bit silly now. :wink: Thank heavens for sane people to point out that I’m being crazy. :slight_smile:

cheers to all!

[edit] to continue the oddysey - a bunch of settings were different between 32/64 bit (i noticed th large toolbar icons for one off the bat) - would I be correct in thinking there is a way to use the same settings for both or is this not the case?