How do I import multiple images in one go?
Moderators: Víctor Paredes, Belgarath, slowtiger
How do I import multiple images in one go?
Title says it all, I need to import 150 images, and the only way I found so far is to import them one by one.
I found the import image sequence script, but the files need to be numbererd in a specific way, and I don't want that.
Drag and drop from explorer also doesn't seem to work (even with a single image)
Anybody have a solution for this?
creacon.
I found the import image sequence script, but the files need to be numbererd in a specific way, and I don't want that.
Drag and drop from explorer also doesn't seem to work (even with a single image)
Anybody have a solution for this?
creacon.
The images are different versions of bodyparts (like 15 heads, 15 bodies etc.)
The names were determined before (photoshop layer names) and the animator knows these names by heart.
I looked at the import sequence script and it should be easy enough to program this, but my programming skills are a bit rusty.
Any programmers out there that could take a look at this, the easiest way would be to just import a whole directory as image layers.
creacon
The names were determined before (photoshop layer names) and the animator knows these names by heart.
I looked at the import sequence script and it should be easy enough to program this, but my programming skills are a bit rusty.
Any programmers out there that could take a look at this, the easiest way would be to just import a whole directory as image layers.
creacon
heyvern wrote:What is wrong specifically with the image sequence import?
150 images? If this isn't for an animated image sequence... can you let us know what else it is for?
I think that is the only solution right now.
-Vern
Didn't somebody do this as a script? If not, would make a great feature request...the easiest way would be to just import a whole directory as image layers
I just found this using Search:
http://www.lostmarble.com/forum/viewtop ... +directory
Maybe it's what you want?
J
Last edited by jahnocli on Fri Jun 02, 2006 5:21 pm, edited 1 time in total.
You can't have everything. Where would you put it?
There are a import directory script a little further down where you found the image sequence script.
You could also try to drag and drop the files from the explorer into Moho, but then you will get a question for each image how you want Moho to handle them.
The import directory script woks really well, I use it all the time.
You could also try to drag and drop the files from the explorer into Moho, but then you will get a question for each image how you want Moho to handle them.
The import directory script woks really well, I use it all the time.
What would be a great feature request is that the import image would support a multiple file requester, or drag and drop from explorer.
creacon
creacon
jahnocli wrote:Didn't somebody do this as a script? If not, would make a great feature request...the easiest way would be to just import a whole directory as image layers
Hi guys,
thanks for the replies, the import directory script did the trick, but now I am running into the next problem:
- The images get imported and fill up the memory, when the app arrives at 1.8 GB it stops importing and displays a file not found icon instead of the layers.
- Then I start putting all the images in switch layers and turn of visibility one by one (this frees up a lot of memory)
- When I restart Moho and reload the project it can load the layers but it seems that the size of the images that wouldn't fit in memory the first time are reset to the size of the file not found icon even if the size says that is 1 1 1.
Any solutions for this problem?
creacon.
thanks for the replies, the import directory script did the trick, but now I am running into the next problem:
- The images get imported and fill up the memory, when the app arrives at 1.8 GB it stops importing and displays a file not found icon instead of the layers.
- Then I start putting all the images in switch layers and turn of visibility one by one (this frees up a lot of memory)
- When I restart Moho and reload the project it can load the layers but it seems that the size of the images that wouldn't fit in memory the first time are reset to the size of the file not found icon even if the size says that is 1 1 1.
Any solutions for this problem?
creacon.
I was expecting this as a potential problem when you first suggested it.
I would strongly reccomend streamlining your projects for each scene.
I can't imagine that every single scene or shot with this character would need ALL of those images. You may want to determine which graphics are absolutely neccessary for any particular shot. For instnce, do you really need all 15 heads for every single shot?
If you need to add in more you can do that on an "as needed" basis.
If you are grouping the images in layer group folders... this should be pretty easy. Only add the "base" set of images. If you need to add more to that "group" you only add exactly what you need.
If these image layers have been translated or animated and you need to keep that info for a new image...
... duplicate that image layer and just change the image in the layer properties. It keeps all the layer keyframes (translation, scaling etc) but uses the new image.
[edit] I do this all the time with my current project. I have a "template" file that contains a background image for tracing and all the styles that are similar for all the characters.
I open the template and do a save as and just change the image reference for my tracing layer. The new image layer maintains the scale and position. Only the image is changed.
I have done this with different "hair style" images that are "attached" to the head. As long as all my images have the same size... just swap them out.
-vern
I would strongly reccomend streamlining your projects for each scene.
I can't imagine that every single scene or shot with this character would need ALL of those images. You may want to determine which graphics are absolutely neccessary for any particular shot. For instnce, do you really need all 15 heads for every single shot?
If you need to add in more you can do that on an "as needed" basis.
If you are grouping the images in layer group folders... this should be pretty easy. Only add the "base" set of images. If you need to add more to that "group" you only add exactly what you need.
If these image layers have been translated or animated and you need to keep that info for a new image...
... duplicate that image layer and just change the image in the layer properties. It keeps all the layer keyframes (translation, scaling etc) but uses the new image.
[edit] I do this all the time with my current project. I have a "template" file that contains a background image for tracing and all the styles that are similar for all the characters.
I open the template and do a save as and just change the image reference for my tracing layer. The new image layer maintains the scale and position. Only the image is changed.
I have done this with different "hair style" images that are "attached" to the head. As long as all my images have the same size... just swap them out.
-vern
I really need all the images.
All the images are hand-drawn and the animator needs them to be available at all times
If only one image from each switch layer is visible Moho can handle this without problems. It's just because it runs out of memory once that it resets the size. I've taken a look at the moho file and noticed a shape parameter, the values that are mentioned there seem to correspond with the scaling factor that I am seeing.
Does this have something to do with it?
creacon
All the images are hand-drawn and the animator needs them to be available at all times
If only one image from each switch layer is visible Moho can handle this without problems. It's just because it runs out of memory once that it resets the size. I've taken a look at the moho file and noticed a shape parameter, the values that are mentioned there seem to correspond with the scaling factor that I am seeing.
Does this have something to do with it?
creacon
heyvern wrote:I was expecting this as a potential problem when you first suggested it.
I would strongly reccomend streamlining your projects for each scene.
I can't imagine that every single scene or shot with this character would need ALL of those images. You may want to determine which graphics are absolutely neccessary for any particular shot. For instnce, do you really need all 15 heads for every single shot?
If you need to add in more you can do that on an "as needed" basis.
If you are grouping the images in layer group folders... this should be pretty easy. Only add the "base" set of images. If you need to add more to that "group" you only add exactly what you need.
If these image layers have been translated or animated and you need to keep that info for a new image...
... duplicate that image layer and just change the image in the layer properties. It keeps all the layer keyframes (translation, scaling etc) but uses the new image.
[edit] I do this all the time with my current project. I have a "template" file that contains a background image for tracing and all the styles that are similar for all the characters.
I open the template and do a save as and just change the image reference for my tracing layer. The new image layer maintains the scale and position. Only the image is changed.
I have done this with different "hair style" images that are "attached" to the head. As long as all my images have the same size... just swap them out.
-vern
Hi Creacon,
Just thinking aloud:
Hmm, 1.8 GB - what size/resolution are your images? Even at full HDTV resolution (1920x1080) the entire 150 images should only take up about 1.2GB, even with 32-bit (24-bit plus alpha channel).
As far as I know, Moho keeps the full image in memory even if it scales it down to fit on the working screen.
Maybe you could resize some of those images to something closer to final render output size (DVD, HDTV, etc) before importing them into Moho?
Sometimes some people make huge images to allow for closeups.
Similarly, for close-ups, or even medium shots, you could crop (and possibly resize) only the bits you need on-screen, to get images that are more output-sized to start with.
You could still make a Moho character with the same layer names for closeups for your animator's convenience.
A little more work involved in setting up your character multiple times for different camera ranges, but it might be the solution if you are using very large images.
Regards, Myles.
Just thinking aloud:
Hmm, 1.8 GB - what size/resolution are your images? Even at full HDTV resolution (1920x1080) the entire 150 images should only take up about 1.2GB, even with 32-bit (24-bit plus alpha channel).
As far as I know, Moho keeps the full image in memory even if it scales it down to fit on the working screen.
Maybe you could resize some of those images to something closer to final render output size (DVD, HDTV, etc) before importing them into Moho?
Sometimes some people make huge images to allow for closeups.
Similarly, for close-ups, or even medium shots, you could crop (and possibly resize) only the bits you need on-screen, to get images that are more output-sized to start with.
You could still make a Moho character with the same layer names for closeups for your animator's convenience.
A little more work involved in setting up your character multiple times for different camera ranges, but it might be the solution if you are using very large images.
Regards, Myles.
"Quote me as saying I was mis-quoted."
-- Groucho Marx
-- Groucho Marx
Are you intending to put all of the images into switch layers as it is? If so, I think I could whip up a quick mod of the script that would bring them right into a switch layer and automatically turn their visibility off. If the files for each switch layer were in separate directories, that should make the setup easier and hopefully help solve your memory difficulties. If that would help, I'll look at it.
EDIT- Whipped it up anyway, seems to work but I don't have any directories with enough images to see if it solves the memorey problem. But it does successfully drop everything into a switch layer and kill the visibility of the layer right after its imported. Let me know if that helps. Here it is:
http://www.sevenfeetdesign.com/moho/scr ... switch.lua
the only thing I have to look at is it's supposed to name the switch layer after the directory name, just to make life that little bit easier, but it doesn't. No biggie.
EDIT- Whipped it up anyway, seems to work but I don't have any directories with enough images to see if it solves the memorey problem. But it does successfully drop everything into a switch layer and kill the visibility of the layer right after its imported. Let me know if that helps. Here it is:
http://www.sevenfeetdesign.com/moho/scr ... switch.lua
the only thing I have to look at is it's supposed to name the switch layer after the directory name, just to make life that little bit easier, but it doesn't. No biggie.
I'm going to jump in here where I have no business for a quick very vaque thought ... I remember seeing a script to 'fix' lost images. Can this be modified, or something like it, so that image layers can be loaded 'broken' -say as placeholders layers where instead of pointing to myimage.png it points to myimage.pngoff and when you need it the script would 'find' the correct image by fixing it back to myimage.png? Basically thinking this might retain structure but offer a way to have images you are not using 'offline' until you toggle the script.
[url=http://burtabreu.animationblogspot.com:2gityfdw]My AnimationBlogSpot[/url:2gityfdw]
Great idea Bupaje!
Additional idea for less chance of "breaking" moho with a "lost" image... link the layer images temporarally to an "invisible" or "blank" very tiny image... like a transparent png that could be defined by the script or loaded by default.
Then it could switch back based on the layer name as you suggested.
-Vern
Additional idea for less chance of "breaking" moho with a "lost" image... link the layer images temporarally to an "invisible" or "blank" very tiny image... like a transparent png that could be defined by the script or loaded by default.
Then it could switch back based on the layer name as you suggested.
-Vern
Final output is 2048 X 1108 or 2K at 1.85, so that seems to correspond with your estimation.
But as I said before this is not the problem once everything is in the switch layers, memory usage goes down as soon as soon as the switch layer only shows one of the images that it contains.
creacon
But as I said before this is not the problem once everything is in the switch layers, memory usage goes down as soon as soon as the switch layer only shows one of the images that it contains.
creacon
myles wrote:Hi Creacon,
Just thinking aloud:
Hmm, 1.8 GB - what size/resolution are your images? Even at full HDTV resolution (1920x1080) the entire 150 images should only take up about 1.2GB, even with 32-bit (24-bit plus alpha channel).
As far as I know, Moho keeps the full image in memory even if it scales it down to fit on the working screen.
Maybe you could resize some of those images to something closer to final render output size (DVD, HDTV, etc) before importing them into Moho?
Sometimes some people make huge images to allow for closeups.
Similarly, for close-ups, or even medium shots, you could crop (and possibly resize) only the bits you need on-screen, to get images that are more output-sized to start with.
You could still make a Moho character with the same layer names for closeups for your animator's convenience.
A little more work involved in setting up your character multiple times for different camera ranges, but it might be the solution if you are using very large images.
Regards, Myles.