Post #5601: For example, if I create a Python script

📋 Metadata

🏷️ Tags

v1-18-8 v1-19-x macro python-scripting advanced unsolved

  • Macro Editor
  • Python Scripting
  • execute_script function
  • Undo Flag registration

💬 Content

For example, if I create a Python script

import bpy

scene = bpy.context.scene
scene.frame_set(scene.frame_end)

and call it through a macro, adding (False) at the end, then the Undo Flag will not be registered in the history. This works in version 1.18.8:

execute_script("E:/YandexDisk/#Settings/Blender Settings/#Custom scripts/Jump to End Frame.py")(False)

In Pie Menu Editor Fork this does not work.


🔗 View on Blender Artists