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$
1
  • $\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
    Commented Aug 28, 2014 at 9:29

1 Answer 1

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$
3
  • $\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
    Commented Aug 29, 2014 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
    Commented Aug 30, 2014 at 6:13
  • $\begingroup$ I understand. Thank you for your answer :-) $\endgroup$
    – Nikos_VSE
    Commented Aug 31, 2014 at 3:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .