PDA

View Full Version : Images in a folder to web via mel?


nelsonteixeira
04-05-2006, 06:00 AM
I wrote a script that does the following: As far as Im satisfied with a test rendering I execute it and it grabs the system date and the file name, compose a name with those and saves a jpg on an specific folder.

Id like to implement something that could scan this specific folder and send the pictures within to my webspace. So I can have, for example, a web page dynamically updated, with a wip section, or my clients to check how the job is going.

Can anybody help me with that?

Bonedaddy
04-05-2006, 08:39 AM
Those are system commands, outside the scope of MEL. What operating system are you using?

nelsonteixeira
04-05-2006, 05:37 PM
Im using Windows XP SP2.

I did know that I could use the system mel command, what I dont now is a command line to do this using XP only. Or if a program like SmartFTP take command line commands.

I was wondering this was out of MEL scope... but I guess the guys at this forum, could help me, I have no idea where else to ask! :(

Bonedaddy
04-05-2006, 08:38 PM
You could use windows system commands to navigate to that folder, then use the command "ftp" to ftp to the appropriate server, then use "put" to put it all up.

What'd be better is for you to create a perl or python script, which could not only upload stuff, but also create a database entry, update the webpage, whatever. I don't know a ton about this, and it'd probably be better for you to just learn for yourself anyways.

meta_Nerd
04-06-2006, 07:12 PM
it would take some web programming, but you may be able to launch a system command to a browser window passing the file name to a php upload script. If you know mel then php will be a piece of cake. I wish I had the exact code for you to use right now, but I havn't wrote anything on the uploading of php. Can't hurt to give it a check...

edit_01:
here is a link you may try.
http://us2.php.net/features.file-upload

Chris Reid

Nicool
04-08-2006, 11:35 PM
Yeah, you are double posting and things are messed up. Here what I wrote to your first post and didn't reply : In this melscript I listed all the file texture of a folder... it may serve your project : http://ndhaussy.free.fr/melScript/c...omDirectory.mel

nelsonteixeira
04-09-2006, 01:11 AM
Thaks for all your replies! I will be checking this up soon and let you know if it worked! :)

nelsonteixeira
04-09-2006, 01:12 AM
Yeah, you are double posting and things are messed up. Here what I wrote to your first post and didn't reply : In this melscript I listed all the file texture of a folder... it may serve your project : http://ndhaussy.free.fr/melScript/c...omDirectory.mel (http://ndhaussy.free.fr/melScript/c...omDirectory.mel)

This link unfortunatelly is broken! :(

Nicool
04-09-2006, 05:10 PM
Why don't you just go back to your first (the only valid one between the tween) post or search for the right link then ?

http://ndhaussy.free.fr/melScript/createFileTexturesFromDirectory.mel

CGTalk Moderation
04-09-2006, 05:10 PM
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.