ghseeli / latex2blender

Code to render LaTeX and import it into Blender
GNU General Public License v3.0
56 stars 13 forks source link

Possibility of using the plugin as pure python i.e. no UI #18

Closed ReneTC closed 1 year ago

ReneTC commented 1 year ago

I have a dream of using this plugin with python. However I'm having some issues controlling the plugin with Python. For example, I would love to be able to write

import bpy
# make text obj
equation = latex2blender("$\sqrt{2}$")

so far it was not possible for me to control the plugin with python (issue1 and issue2), I was wondering if it's possible to get the "pure" inner workings of the plugin, that is simply just a function that makes a 3d latex object , but without any of the UI tools?

Is it possible to make this plugin into a simple python function that should not be installed for example.

I hope it makes sense, I would love your input on this.