Comments (1)
Hello!
The reason you're getting the first error is because you're writing a Manim Scene wrong. You have to write it like this, with the animation code in a construct
function:
class Chem(Scene):
def construct(self):
test=ChemObject("A-B")
self.play(Write(test))
As for an __init__
function, the reason for that is because ChemObject
inherits everything from TexMobject
while changing a few properties (the CONFIG
stuff) so you don't have to worry about that.
Also, that chemfig code that comes at the top shouldn't be there, sorry. That was because of me trying to provide some out of the box shorthands for common compounds. I've begun work on cleaning up this repo so you won't have to worry about that in the future.
(P.S. sorry for a late reply)
from chanim.
Related Issues (13)
- Too much chemfig code exported to TeX-files HOT 1
- ImportError: cannot import name 'SmallDot' from 'manim.mobject.geometry' HOT 1
- How to implement reaction scheme in chanim HOT 7
- LaTeX compiler error
- New Manim Version not compatible HOT 2
- ImportError: cannot import name 'OpenGLMathTex' from 'manim.opengl' HOT 3
- temporary files are saved in the wrong location
- Bonds not displayed HOT 3
- Issue with Arrows HOT 9
- Hatched bonds HOT 1
- Examples usage? HOT 4
- OSError: no library called "cairo" was found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chanim.