Post #4707: I am sorry, but I have not created any advanced functions using “Macro”, so I am

📋 Metadata

🏷️ Tags

macro scripting intermediate solved

  • Macro Editor
  • Property Editor
  • UserData storage
  • Addon Preferences

💬 Content

I am sorry, but I have not created any advanced functions using “Macro”, so I am not sure I can give you the answer you are looking for.

From your description, it looks like you are trying to take a value from C.object.location and put it directly into C.object.location.
Also, I don’t know how wm.pmi_edit is originally used.
Are you trying to update “Macro” with it? Looking at the source code, the update_macro in the _edit_pmi function is commented out, so I’m not sure, but I don’t think you can use that.

Are you trying to create a function like “Copy Location” ? If not, please explain your purpose again.

If you simply want to answer the question “I want to save a value in PME”, there are two ways.
One is to store values in UserData provided by PME. You can use it as U.hoge.
The other is the “Store in Addon Preferences” option in “Property”.


🔗 View on Blender Artists