Post #1268: ![](https://blenderartists.org/user_avatar/blenderartists.org/rbx775/48/460868_2

📋 Metadata

  • Author: roaoao
  • Date: 2018-03-22 07:08:07
  • Type: answer
  • Quality Score: 7/10
  • Reply to: post_01266

🏷️ Tags

python-scripting intermediate solved

  • Python Scripting
  • Macro Editor

💬 Content

rbx775:

Though, can I call different classes/functions of a Script through PME’s “execute_script” ?
Or even parse additional variables ?
e.g.: execute_script(“…/Scripts/Symmetrize.py”, “X”)

Hi, thanks.
Good question. I don’t think that’s possible using execute_script(). But you can import and call functions.
For example:

from mesh_relax import relax_mesh; relax_mesh(bpy.context)

🔗 View on Blender Artists