long (255+) pathname support

Discussion and Support of XMesh, the Geometry Caching System
LaszloSebo
Posts: 2516
Joined: Mon Nov 21, 2005 7:30 am

long (255+) pathname support

Postby LaszloSebo » Fri May 26, 2017 1:12 pm

When pathnames to an xmesh file are longer than 255 characters, and the path is set via maxscript, xmesh can't find the file.
The workaround of putting "\\?\" or "\\?\UNC" in front of the pathname also fails.

paul
Thinkbox Software
Posts: 1182
Joined: Wed Nov 03, 2010 12:12 pm
Contact:

Re: long (255+) pathname support

Postby paul » Fri May 26, 2017 9:24 pm

Thank you for your report! I have reproduced this problem, and I will add it to our issue tracker.

It seems like I can't even set the renderSequence to a path starting with \\?\ -- the first \ gets removed.

You mentioned maxscript, but I assume you are not able to set a long path in any way, right?

Is this important for you?

LaszloSebo
Posts: 2516
Joined: Mon Nov 21, 2005 7:30 am

Re: long (255+) pathname support

Postby LaszloSebo » Mon May 29, 2017 10:03 am

If i use the manual load option through the command panel, the windows explorer feeds shortened names "\\bla\~bla\~blabla" into the xmesh node, and that works. But all our handling code is automated, so maxscript would need some sort of support too :\

Its kinda important, we run into this every now and again, and most of our scripts we have fixed by adding support by prepending \\?UNC\ into the pathnames. But this particular asset has to be rendered in a day or so, so we will rename the objects and redo the export that way. So in other words, would be nice to get this fixed in a future build, but no need to light the emergency fires :)

eamsler
Posts: 1547
Joined: Thu Dec 16, 2010 1:02 pm
Location: Winnipeg, MB, Canada

Re: long (255+) pathname support

Postby eamsler » Tue May 30, 2017 11:18 am

Does the new-world path style work in most places? I've been meaning to play around with that but keep forgetting to. I'm just wondering if telling people to throw "C:\" into path mapping to become "\\?\C:\" would be worth playing around with.
Edwin Amsler
Head of Support
Thinkbox Software Inc
1-866-419-0283 ext 804

Winnipeg


Return to “Thinkbox Software - XMesh”

Who is online

Users browsing this forum: No registered users and 1 guest