Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / Merge file
  RSS 2.0 ATOM  

Merge file
Rate this thread
 
37378
 
Permlink of this thread  
avatar
  • Total Posts: 17
  • Joined: 05 February 2009 07:49 AM

Hello,

I want to merge file from network path.
I have use command loadMAXFile ("\\\\alpa\c:\111.max").
But cant merge and result is false.

Is command wrong ?

Then how can i merge from network path by maxscript.

I am new to max script.

Thanx



Replies: 0
avatar
  • Location: West Midlands, England, UK
  • Total Posts: 14445
  • Joined: 06 August 2007 11:06 PM
  • Permlink of this post

You’re half way there. Backslash characters need to be escaped - with a backslash character. You’ve done it on the initial \\ but not on the others.

loadMAXFile "\\\\alpa\\c:\\111.max"

Also, it’s not usual to have “C:” in there - normally just “C”, but it does depend on how the directory/drive is shared. Navigate to the file in Windows Explorer and check the path shown in the title bar.

loadMaxFile is probably not what you want - it’s the same as File | Open - it LOADS the scene, not merges it. Take a look at mergeMAXFile instead.



Max 4.2 through 2013.
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.

Replies: 0
avatar

Thak you for your reply,

I have try all the things which you suggest me.

But still comming false.

I tried :

mergeMAXFile ("\\\\10.33.33.132\\c\\cover.max")
but result is flase.

when i try pathIsNetworkPath “\\\\10.33.33.132\\c\\cover.max”
the result is true
Then why i fail to merge this file from upper commnd ?

Please help

Thanx



Replies: 0
avatar
  • Location: West Midlands, England, UK
  • Total Posts: 14445
  • Joined: 06 August 2007 11:06 PM
  • Permlink of this post

As per the Maxscript help - pathIsNetworkPath does NOT test that the path is valid or that the file exists, only that the “signature” of the path is UNC rather than local.

Try doesFileExist to test whether the file does exist - if not then your path is incorrect in some way.

All this works perfectly here using either the Machine Name or the machine’s IP address.



Max 4.2 through 2013.
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.

Replies: 0