Acessing to Coda, Segno elements
Hi all,
I'm trying to develop a plugin that colours authomatically Coda, Segno, D.C. To Coda, etc. elements but I don't know how to access them through a plugin. I tried to access through segment.annotations but the lenght is 0 for all the elements in the score. I attach a screenshot of two elements I'm trying to access.
Is it possible in the current version of plugin developer to access to this elements? If yes, how?
Thank you very much in advance for your help.
Marta.
Attachment | Size |
---|---|
Screenshot_4.jpg | 17.97 KB |
Comments
Repeat markings like these are not actually stored as segment annotations but as part of the element list for the measure. Not sure if that list is exposed to plugins or not. but anyhow, that's where you'd need to be looking.
In reply to Repeat markings like these… by Marc Sabatella
Thank you Marc for your repply. I have looked also in the element list of the measures and I couldn't find them. Maybe they are not accessible through plugins yet.
Do you know if the will be in a near future?
Thank you again.
Marta
In reply to Thank you Marc for your… by Marta Morticia
I don't, I really have not looked at the plugin code. But maybe someone more familiar will see this and comment.
In reply to Thank you Marc for your… by Marta Morticia
The list of measure elements was indeed missing from the plugins framework. I have just pushed a patch which exposes it to plugins. This change will be available in the upcoming 3.3 release (3.3 Beta version is expected to be released soon) or in the upcoming nightly builds.
Here is a simple example of the code which colors all repeat markings in a score with this change:
Hope this helps!
In reply to Hello! The list of measure… by dmitrio95
That has been amazing! Thank you very much for expose the measure elements through plugins. That definitively will help with my plugin development.
I'll post it in the plugins section once is finished.
Thank you very much again for your help!!
Marta.