View Full Version : i-drop and/or download from URL

fusion of elements
10 October 2005, 02:06 PM
I am beginner -> intermediate MaxScripter with several tools developed over the past few months. However, I have hit a brick wall with my latest tool which requires Max to download a max file from a URL.

I know this is possible with i-drop, but I cant get that working from Script at all. I've looked at the help file all day and have worked through many alternatives, but got no where. The furthest I've got is using an ActiveX plugin or a Webpage in a dialog box to i-drop manually. However, this isnt what I need to achieve.

I require a script to make a connection to the web, and download a .max file from myURL to myDest (C:/3dsmax7/downloads).

I dont see any need to use i-drop. All I require is a simple download from/to function. Is this available in MaxScript? And if so, how is it achived? (there are no docs in the help file).

I have come from a Macromedia Director/Lingo background and this is an easy achieved process (downLoadNetThing "myURL", "myDest"). So im finding it very frustrating that there isnt something similar in MaxScript.

Any help or insight into this (with examples) would be very much appreciated.

Thanks in advance!

fusion of elements
10 October 2005, 08:23 AM
Finally found the answer to my post with a little more trial and error yesterday.

I just wanted to share this with you incase anyone came across this problem - the MaxScript reference didnt seem too clear on this one and didnt give any code examples. Anyways...

-- 1. force an internet connection

internet.CheckConnection url:http://www.mysite/images/myimage.jpg force:true

-- 2. do the download

dragAndDrop.DownloadUrlToDisk "http://www.mysite/images/myimage.jpg" "C:/3dsmax/mydownloads/myimage.jpg" 1

This will force an internet connection and download a specific image. Of course you can throw all sorts of variables and wild cards in there, but I was specifically interested in the download function. The MaxScript reference says that the integer at the end of the download function is a 'flag'. Again, with no documentation of this, I use a "1" and have no idea why.

It would be good to know why this flag is needed and what it is for. I 'guessed' and used a 1, as 1 == true.

CGTalk Moderation
10 October 2005, 08:23 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.