Yet to experiment in this area yet, but I'm wondering, will any replacement SVG file do? Or are certain "keys"
needed for the animations? I know little about SVG.
I'm hoping someone else has found a work around. No need for the scenes to look good. I just want to use them as a way to understand the system.
Yes same issues, I got a svg error when the svg is missing (normal ^^). And when I download a new svg (like http://www.clker.com/cliparts/6/J/p/U/f/h/animated-pi.svg), I got a index error. For some scene we can just delete all Pi creatures command but it's very long.
This interests me too. I have no idea what are the requirements on the SVG file so that I can use it as a pi creature. I just know that a general SVG does not work. At least one example would be appreciated.
Hi, I understand it better now.
3b1b has lots of different pi creatures: angry, confused, dance_kick, erm, guilty, happy, hesitant, hooray, maybe, plain, pleading, pondering, raise_left_hand, raise_right_hand, sassy, show, shruggie, speaking, surprised, thinking, well
but he probably do not intend to publish them.
Pi creatures are in the directory files/images/PiCreature/ and they are named PiCreatures_<name>.svg
Every pi creature image is supposed to contain 6 paths. In order: left eye, right eye, left pupil, right pupil, body, mouth.
I have made an example pi creature
Update: Originally mentioned fixes considering file mobject/svg_mobject.py have been merged into the master repository. So following example should just work after downloading the example image..
class PiCreatureExampleScene(PiCreatureScene):
def construct(self):
mortimer = self.create_pi_creature()
self.dither()
For more sophisticated examples, copy the original one to other names and try to make minor changes in them.
I have added the simple plain expression and made it so that scenes with pi creatures should fall back on this svg, so those scenes should run now. Let me know if they don't. The full palette of expressions is somewhat 3b1b specific, so I'd prefer to keep it out of the public repo.
@3b1b, as suggested in #24, you could just licence the pictures so that we can have these...
@3b1b Scanning through some of this code, it looks pretty dense and impenetrable, and I think it's probably going to remain that way the fewer assets you share with the community.
Closing, as this issue is old and seems to be resolved.
Most helpful comment
Hi, I understand it better now.
3b1b has lots of different pi creatures: angry, confused, dance_kick, erm, guilty, happy, hesitant, hooray, maybe, plain, pleading, pondering, raise_left_hand, raise_right_hand, sassy, show, shruggie, speaking, surprised, thinking, well
but he probably do not intend to publish them.
Pi creatures are in the directory files/images/PiCreature/ and they are named
PiCreatures_<name>.svgEvery pi creature image is supposed to contain 6 paths. In order: left eye, right eye, left pupil, right pupil, body, mouth.
I have made an example pi creature
Update: Originally mentioned fixes considering file mobject/svg_mobject.py have been merged into the master repository. So following example should just work after downloading the example image..
For more sophisticated examples, copy the original one to other names and try to make minor changes in them.