Add a String Number text in a MS3 plugin
I am using newElement(Element.STAFF_TEXT) to create and style a new text element to add at the cursor position but I can't work out how to make this of subtype "String Number". Any ideas?
I am using newElement(Element.STAFF_TEXT) to create and style a new text element to add at the cursor position but I can't work out how to make this of subtype "String Number". Any ideas?
Do you still have an unanswered question? Please log in first to post your question.
Comments
Hello yonah_ag,
Try :
var yourstyle= newElement(Element.STAFF_TEXT);
yourstyle.subStyle = Tid.STRING_NUMBER ;
Piersyl
In reply to Hello yonah_ag, Try : var… by piersyl
Thanks, that works.
What is Tid?
[Updated] Found Tid in the plugin API documentation.
In reply to Thanks, that works. What is… by yonah_ag
Great ! Hello from France!