Page 1 of 2

Mulitiple File Import

Posted: Sun Jun 26, 2005 11:09 pm
by Toontoonz
I am sure this has been requested by the usual posters here, but with the new ability of Moho to export layered Photoshop files and the resulting need to re-import those image files back into Moho, Moho needs to be able to import lots of image files back at once.
Importing 240 image frames (and more, more, more frames as the size of the animation grows) ONE........AT.............A..............TIME is a total waste of time.

Can Moho have multiple file import???

Posted: Mon Jun 27, 2005 12:53 am
by Nichod
Isn't there a script available that does this?

Brian

Posted: Mon Jun 27, 2005 1:39 am
by Nichod

Posted: Mon Jun 27, 2005 1:44 pm
by Rasheed
That didn't work at all:

Code: Select all

js_image_sequence.lua:184: attempt to concatenate a nil value
Line 184 of the js_image_sequence.lua script contains this code:

Code: Select all

fileExists = self:Exists(prefix..self:formatNumber(number+count, self.padNums)..suffix)
I have no idea what that means.

BTW I'm on OS X.

Posted: Mon Jun 27, 2005 8:45 pm
by DaleG
Is it more difficult to program file importation than exportation? (thats not a rhetorical question, I know nothing about programing!) If not, it seems that a nice feature now that we can export layered files to photoshop, would be to be able to import all the layers back into moho!

(I'm thinking this is easier said than done?)

Posted: Mon Jun 27, 2005 8:50 pm
by jorgy
The script expects the names of the files to have a certain format - could this be the issue?

Posted: Mon Jun 27, 2005 9:00 pm
by 7feet
Yeah, as Jorgy said. If you can tell me what the filname looks like, I'll whip up a quick mod for you to recognize it.

Posted: Mon Jun 27, 2005 9:14 pm
by Toontoonz
I can´t get it to work, either.
Running Windows XP.

Obviously I am doing something incorrectly.

Which Scripts folder are the two .lua files supposed to be in?

When I have Moho running it shows up in the top menu under Scripts>New.

I click on the "Image Sequence", window opens, select first file....switch layer is made in Moho, nothing in it.
Try the import directory and get an error message. :?

Posted: Mon Jun 27, 2005 9:28 pm
by Toontoonz
Here´s a screen shot of the error message I get when using the directory script:
Image

I moved the script to the "other" folder to see if it made a difference.

Posted: Tue Jun 28, 2005 12:04 am
by 7feet
The js_import_directoryc.lua file goes anywhere you want, as long as it is somewhere inside of the Moho>Scripts>Menu folder. The other two, js_utilty.lua and sf_utility.lua MUST be in the Moho>Scripts>Utility folder. The sf_utility.lua file is mine, and I've updated it a number of times, all backwards compatible. It's used by some of my other scripts, so if there is one in there don't replace it with this version (its old), just leave it or some of my other scripts may go belly up.. The error you are getting is because Moho is not finding the js_utility.lua script where it expects it. Put it in the script utility section and you should be fine.

Posted: Tue Jun 28, 2005 10:55 pm
by Toontoonz
7Feet - thanks for the info, I got the import image directory to work.

--------------------------------

I would like to add a comment about the scripts in general. This is not a criticism about the scripts themselves, nor directed at 7Feet, but to all scriptwriters out there and how the scripts are presented to the public.

Imagine if you will, a first time user of Moho or a script-ignoramus such as me, going to the the forum where this script is listed:
http://www.lostmarble.com/forum/viewtop ... sc&start=0

There are three pages of forum there and lots of scripts to choose from.
Which one do I use? Which not? Again - please assume that people like me know nothing. And then there are now scripts from two people on the same subject - which is correct?

You note in your posting to me above that one must have "js_utility.lua script" installed. But where is it? Ahhhh- it is in your .zip file. But go to the forum where the script is presented. That "js_utility.lua script" script is never mentioned until the 2nd page of the forum - the first time it comes up is in your forum entry on page 2. Before that it is never told to the ignorant reader (me) that it is even needed. (Or I maybe missed it in all the messages going back and forth.)

The thing I am requesting or hoping for ----
Isn´t there a better way to present scripts? Can´t there a be a place where a final, good script is located for us to access. (With not lots of confusing messages going back and forth or new versions - just the finished version.) And couldn´t it be presented in a simple, standardized format that is understandable to stupid people like me?
Such as:
-Name of Script:
-What it does (short description):
-Where one should put it in Moho (which script folder):
-Where I will find it in Moho when I start Moho up:
-How to use it:
-And a sample animation or screen shots of it being used.

I really like scripts and your´s are great. But I am a dunderhead and need it all real simple.

I know there is a Lost Marble script page:
http://www.lostmarble.com/moho/extras/scripts.shtml

But there is only one there. Particle Layer. Why aren´t others there? Is this Lost Marble only?

I really like to use scripts (I think I use eveyone 7Feet has made), but it can be real confusing at times - I am sure it is even worse for people just starting to use Moho. The easier it is for people like me to understand it, the more likely we will use the scripts.

Again, I am not criticizing the scripts or the script writers.
I think they are great. I am trying to make it easier for everyone to use the scripts you scriptwriters make. :D :D :D

Posted: Tue Jun 28, 2005 11:26 pm
by Lost Marble
Toontoonz wrote:But there is only one there. Particle Layer. Why aren´t others there? Is this Lost Marble only?
That page was intended for third-party scripts, and I'd love to be able to include some there, but no one has submitted any. I've asked folks like 7feet for "final" copies of their scripts, but so far no luck...:cry:

I agree, the scripting forums are fine for discussing scripts or releasing test scripts, but once a script is finished and ready to use, the forum is not a good way to organize them.

Posted: Tue Jun 28, 2005 11:43 pm
by bupaje
@LM - I haven't tried this but there is a nice looking free download manager script here http://www.olate.co.uk/products/ would allow people to submit stuff and you to approve etc.

Posted: Tue Jun 28, 2005 11:53 pm
by Lost Marble
I don't think it's a technical problem, or that the submission process needs to be easier. It may be that the script writers consider their scripts "works in progress" and don't feel ready to call them "finished".

Posted: Wed Jun 29, 2005 4:52 am
by 7feet
Sorry to LM and allthe ships at sea. I have a bunch I do consider finished, or at least emminently usable at this time. I think that because I actually use them all the time. When a new version of Moho comes out and I have to run a new installation instead of just updateing the moho.exe files, it mucks me up tracking down all my script mods. My personal version is pretty tweaked for the way I want to work, but some of it's kinda idiosyncratic so I don't put them all up. But I woud be happy to, and will, cull theough the ones I think are "done" and send them to you, LM. I've been mad busy, but I just got a fat freelance job that should net me in a week what I was making in 3 months, so I should be able to chill a little and get it together.

ToonToonz - I was thinking about that last night. Although I thought that the library idea would work well, I realized it is too much of a pain in the bum for people to keep track of (me too). I thought it would save some memory use, but for the size of the scripts I've written so far it's a bit of a useless economy. So I'm going to go back and just drop copies of all of the routines I have used from the library into the scripts themselves. I should be able to do that this weekend. It's a generally much more workable solution, and I guess I just got carried away with the idea at first. But I was thinking pretty much the same thing before I even saw your post. SOme ideas work, some don't, thats the way it goes. That one will go away, it don't make life easier. And that was always the point in the first place, I want the scripts to first make my life easier, and then I'm happy to share 'em.

Also, I was just adding tweaks to a work in progress that was written by someone else. So it was kind of experimental, and was just trying to help Janimatic get it to where he thought it should be. Didn't think it was going to be the final (at this point) version. As with Jorgy's Slideshow script, I think I'll throw some auto scaling of images in there (if you want to use it) since the new update allows you to find the size of an image.

Now I just have to get my "visual feedback" version of the Freehand script up to snuff. And fix the Point Reduction one. And...........