This repository contains code written during Universidad Mayor's Vertically Integrated Project 'Python animations for applications in nanomagnetism', meant to help physics researchers create spins animations in Blender.
Whenever ArrowAnimation(axis="z") is used, spins are expected to appear orthogonal to the lattice that's formed when the dimensions are [x,y,1], with x and y above 1.
This is not happening right now, every axis used appears parallel to the lattice, and should be fixed.
We're trying to use the Godot engine in order to be able to show our spin matrices on a web browser, since GDScript follows Python's syntax and godot-python exists. Godot allows exporting a project as HTML5 and also uses WebGL, we must prove this is viable for our intended use.
The Blender folder is quite messy, having all Python code along other files such as the Blender project file, the arrow 3D object file and a paramagnetism image.
Suggestions:
Python files should be placed inside a src folder, probably config.json should be there too.
The output folder currently holds rendered videos that are excluded from the GitHub repository. This should be placed somewhere else, probably at the root of the local repository, as it's not relevant to the code.
The out folder should be named matrices.
An assets folder would be ideal for files such as arrow.mtl and arrow.obj.
Many .blend files aren't in use and should be deleted. The only file that's currently in use is spins1D.blend, a better name would be useful (demo.blend?)
The root folder is quite messy too, and an images folder could be useful. Blender/paramagnetism.png would be better located there.