Post #1985: bl

📋 Metadata

  • Author: roaoao
  • Date: 2019-02-24 20:39:38
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_01983

🏷️ Tags

python-scripting intermediate solved

  • Python Scripting
  • Macro Editor

💬 Content

blndrusr:

@roaoao, can you somehow pass an argument when launching external script?

Yes, you can pass them like this:

execute_script("scripts/print.py", msg="My Message")

Use msg data in external scripts like this:

print(kwargs["msg"])

🔗 View on Blender Artists