I am trying to make a model that would change the mesh by adjusting the three parameters on the screen. (figure below)
I want the three values on the screen changeable, and then the “run button” pass the new values to the python script, which will delete the current mesh and create a new one.
Here are some of my questions -
I am not very familiar with the Blender scripting pipeline (Blender 2.79), so I don’t know how I could make the “texts” input-able, how to set environment variables and call them in the script.
I used “bpy.ops.mesh.add_object(location=(0,0,0))” to create the mesh, where “add_object” is written in another script. Then, I want to get this mesh to change its properties by “mesh = bpy.context.object.data” - while the console calls an error. How could I get the new generated object in python code?
Thank you very much in advance!