image sequence script
Moderators: Víctor Paredes, Belgarath, slowtiger
hey!
thank you for the feedbacks!
> ok the file ordering could be usefull;
> i was also thinking of a name filtering feature :
using *.ai to import ai files only,
scene1* to import files from scene 1 only etc...
Also i added my custom illustrator actions here :
http://animatic.no-ip.com/pub/dev/moho/moho_export.aia
> convert strokes to shapes whene necessary
> add point, simplify (keeping curve), re-add points
> export selection as version 8 (usefull to export layers to moho compatible .ai)
The resulting ai files (one per layer) could be imported by my script, let's think about how to keep layers ordering
(numbering file should do it : i think the files are imported in alphabetical order..it depends on system command)
Any other request?
thank you for the feedbacks!
> ok the file ordering could be usefull;
> i was also thinking of a name filtering feature :
using *.ai to import ai files only,
scene1* to import files from scene 1 only etc...
Also i added my custom illustrator actions here :
http://animatic.no-ip.com/pub/dev/moho/moho_export.aia
> convert strokes to shapes whene necessary
> add point, simplify (keeping curve), re-add points
> export selection as version 8 (usefull to export layers to moho compatible .ai)
The resulting ai files (one per layer) could be imported by my script, let's think about how to keep layers ordering
(numbering file should do it : i think the files are imported in alphabetical order..it depends on system command)
Any other request?
Very cool. About how I was going to try and find the initial directory, but then I hit a wall trying to hack together the whole dll thing. The temp batchscript thing is brilliant. A few bits n tweaks-
Made a little function to search back through the strings, little easier to slap in all over the place. Threw it in a few places, particularly on the check for the extension to keep you from possibly pulling a part out of the middle of the path and making Moho maybe try to import an invalid file. Better for error checking, I think.
On the batch file creation for Windows, you had the "change drive" command after the "CD" command", so it might get wierd. I fixed that and threw in a couple of other things like .OBJ import and video.
Oh, yeah, I also forced the filename extensions to lowercase just in case there were some capitals in there (picky, picky Lua), put in an OS check that I think should work, and made it name the Group Layer after the folder you are loading from. Hope you don't mind, here's what I whipped up. Cool stuff, I probably never would have thought to do it like that. Now if you throw in the options and filters it'll really cover it.
Made a little function to search back through the strings, little easier to slap in all over the place. Threw it in a few places, particularly on the check for the extension to keep you from possibly pulling a part out of the middle of the path and making Moho maybe try to import an invalid file. Better for error checking, I think.
On the batch file creation for Windows, you had the "change drive" command after the "CD" command", so it might get wierd. I fixed that and threw in a couple of other things like .OBJ import and video.
Oh, yeah, I also forced the filename extensions to lowercase just in case there were some capitals in there (picky, picky Lua), put in an OS check that I think should work, and made it name the Group Layer after the folder you are loading from. Hope you don't mind, here's what I whipped up. Cool stuff, I probably never would have thought to do it like that. Now if you throw in the options and filters it'll really cover it.
hey 7feet!
that sounds great!
the web server says i am not authorized to see the file though...
I agree, we should start to write modular and reusable code, and put it in separate files (searchBackward etc...)
I should try the dll thing one of this days (but then i would have to compil my c++ code on 3 os and that s...)
ty very much , your contribution is very helpfull as always!
regards
julien
that sounds great!
the web server says i am not authorized to see the file though...
I agree, we should start to write modular and reusable code, and put it in separate files (searchBackward etc...)
I should try the dll thing one of this days (but then i would have to compil my c++ code on 3 os and that s...)
ty very much , your contribution is very helpfull as always!
regards
julien
Alternate file that hopefully is accesible
http://www.sharemation.com/MoreMohoC/js ... ctoryb.lua
http://www.sharemation.com/MoreMohoC/js ... ctoryb.lua
well Brian,
here is your version accessible worldwide :
http://animatic.no-ip.com/pub/dev/moho/ ... ctoryb.lua
I hope u don't mind me putting it online
best regards
here is your version accessible worldwide :
http://animatic.no-ip.com/pub/dev/moho/ ... ctoryb.lua
I hope u don't mind me putting it online
best regards
One more time - I couldn't stop messing with it. Did some stuff. Made up a couple of files for global libraries (one me, one you, janimatic). both are in the file.
http://www.sharemation.com/Moho/Example ... w-libs.zip
the sf_utility.lua and the js_utility files go in the [Moho Installation Directory]>Scripts>Utility folder. I tried to throw everything that would be generally useful into the utility libraries. Put in checks for whether or not to keep the file extension as part of the layer names (this often bugs me) for the different layer types. Also the code for file filtering is there. They both just need some UI setup (don't have the energy). Tried something new for the file extension checking. Also put in:
'cause otherwise Moho would let you close the project, or open a new one, withour asking you is you wanted to save, which was inconsistent.
That was fun. Can't check anything on the *nix/OSX stuff. Also made up a function that'll just pull the sub-directories into a list (in case you want to fish through a whole tree. In the lib, not the main script.
http://www.sharemation.com/Moho/Example ... w-libs.zip
the sf_utility.lua and the js_utility files go in the [Moho Installation Directory]>Scripts>Utility folder. I tried to throw everything that would be generally useful into the utility libraries. Put in checks for whether or not to keep the file extension as part of the layer names (this often bugs me) for the different layer types. Also the code for file filtering is there. They both just need some UI setup (don't have the energy). Tried something new for the file extension checking. Also put in:
Code: Select all
moho.document:PrepUndo(moho.layer)
moho.document:SetDirty()
That was fun. Can't check anything on the *nix/OSX stuff. Also made up a function that'll just pull the sub-directories into a list (in case you want to fish through a whole tree. In the lib, not the main script.
the Import Library script doesn't support the characters åäö in filenames, when importing such files there's an replacement image-icon instead. I can't change them through "image settings>source image" either.
When importing the usual way they work fine.
If it's an easy thing to add support for those characters in the script I would be grateful for an fix, else, no need to bother, I'll just have to avoid those letters.
When importing the usual way they work fine.
If it's an easy thing to add support for those characters in the script I would be grateful for an fix, else, no need to bother, I'll just have to avoid those letters.