I’m using blender for a 2d cutout animation project, and I really need a script to automate some steps.
I’d like to know if it is possible before I try to build it.
Let me explain as simply as possible my problem with a few images :
So I have to set up a 2d character in blender, via transparent png’s.
The process is like this :
0: First the character is “cut” in different parts (legs, arms, torso, etc…). The result is 12 transparent png files in this example.
then I manually import each part of the character in blender. I’d like the script to do those numerous steps automatically.
1: create a plane
2: uv-map the plane (simple default projection)
3: create a new material
3a: give that material the png’s name.
3b: settings: ref:1, spec:0
4: create a new texture
4a: give that texture the png’s name.
4b: settings: position:uv, canals:col + alpha
4c: type:image, path:same as the uv-map
5: resize the plane according to the png proportions
Here’s a mockup of what the script could look like, and how it would works.
–> you choose a png file…
…and than the script do the rest : create a plane, uv-map it with the png file, create the correct material and the correct texture, than apply the correct size to the plane.
The ideal would be to be able to choose an entire directory, and the script would process each file inside it… Maybe I’m asking too much.
So this was the process for just one part.
Now imagine your character is divided into 20+ parts. Then imagine you have 20+ characters or more, plus the backgrounds etc… Now you can figure why I need that script !
It would litterally save hours and hours of uneeded work.
That’s it for the basic explanation.
Now, my question : is it possible ?
I just want to know if I can achieve this with a python script, before I try to make it.
Well, I’m not really a kind of a programmer, but if I know it is feasible, I’m willing to learn python scripts. Because I really really need that script.
Well, I’m not asking anybody to make it for me, I suspect it could take quite some time to make.
But if anyone were willing to help me with the basis, or the tricky parts, I’d be really gratefull.
I used to work with flash for that kind of animation, basically you import a file, and that’s it, it’s ready to be animated.
I’d like to have the same behavior with blender, to avoid loosing hours just setting up the characters.
because blender is so powerfull for animation… well, you must know that.
So ANY help or advice will be greatly apreciated.
Thanks for taking the time to read that long post.
ps : small example of the wip projet :