Help with the script please
dim_sh_ecd463260f
Posts: 17
Hi
I import fluid animation from a blender. I did not find a simple way. I import every frame in the obj format. A lot of items are imported.
All objects are numbered in accordance with the frame on which they should be visible.
I found a great plugin that shows / hides objects in animation. With this plugin, I make the subject visible in the right frame. I do it manually.
How to write a script that would do this automatically?
So that the object with the name "untitled_000005" was visible only in frame 5.
Comments
Try this method:
1) Import the first frame
2) use morphloader to import all teh other frames as morphs
3) https://github.com/versluis/animmorph Use this script to toggle the morphs
Oh wait, I don't know if it will work like that, I just remembered that morph will only work if each item has the same polycount.
That's right, this method doesn't work, I already tried.
Each item has a different number of polygons.
Can such a script be written?
Probably, but I suspect it would be very slow for any substantial simulation. There was, as I recall, a script for importing .mdd files (not the same as the vertex count was constant) and it was billed as being slow - somethign that ad to handle variable vertex couns would probably be slower.