1
$\begingroup$

I'd like to update a list of markers [name,frame] everytime the user moves or deletes a marker. Yet, I couldn't find a solution using Handlers, but I have the feeling that it is possible...

The user's actions I'd like to monitor appear in the top info window.

For example :

bpy.ops.marker.move(frames=-1512)

Any hint ? Thanks a lot !

$\endgroup$
  • $\begingroup$ Waiting for a better solution, I update my list with a handlers.frame_change_post.... 25 times per seconds. That breaks my heart. $\endgroup$ – Nikos_VSE Aug 28 '14 at 9:29
2
$\begingroup$

Currently there are no callbacks in bpy.app.handlers to catch these events. The api we have own isn't well suited to adding callbacks into 100's of operations which would be needed to support customizing the behavior of any tool.

Probably it would be better if we just have some way to update marker names built into Blender.

$\endgroup$
  • $\begingroup$ Wouldn't be possible to have a wordpress-like "hook" feature in the API ? You registrer a piece of code and hook it to any other pre-build function. $\endgroup$ – Nikos_VSE Aug 29 '14 at 19:44
  • $\begingroup$ Its possible, but you really want a hook when any marker is moved (since there are multiple ways to do this), currently we just don't support that level of granuality. $\endgroup$ – ideasman42 Aug 30 '14 at 6:13
  • $\begingroup$ I understand. Thank you for your answer :-) $\endgroup$ – Nikos_VSE Aug 31 '14 at 3:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.