feat: Add module variable for slide label#52
Conversation
|
Hey there @rashmisinha07 Thanks for the PR. |
|
If you are really keen.... Then please update to:
Getting the current arrangement is a little unintuitive... Because arrangements can be different for a presentation if it's triggered from the library (using the arrangement selected in the library) or from a playlist (using a sometimes different arrangement selected in the playlist )....(the same song could be in a playlist multiple times with different arrangements... So I plan to:
Otherwise, if {id} of the active playlist is NOT null, then
At this point we now know WHICH arrangement the active presentation is using.... We can use the arrangement info combined with the current slide index (that respects arrangements) to determine the current slide and check for a label! I have already roughed this out in my head and I plan to implement soon..(coming weeks) Unless - Are you really keen to update your PR to match? let me know if you will.. I'll wait, |
|
Let me know - I don't mean to scare you! If you feel confident to fix the issues with the PR, please let me know. |
|
@greyshirtguy can you review the latest changes? |
|
Sure can - please be a little patient - I am drowning at work in my day job atm... might be a few days |
|
Sorry about delay - I'll look at this soon |
|
I'd love this feature! I want to have a blinking button on my stream deck when the selected slide = a specific value |
|
Sorry about delay.. To see what I mean.... Note how presentationData.currentArrangement reports "arrangement 1" from the library. Also, it does not refresh the presentationData when user edits the presentation. I should have some time to look at this a bit closer and suggest code changes in the next week or so. |
Add Active Presentation Current Slide Label Variable
Summary
Added a new variable
active_presentation_current_slide_labelthat displays the assigned label text for the currently selected slide in ProPresenter.Changes
Active Presentation Current Slide Labelvariable definition insrc/variables.tspresentationSlideIndexUpdate()function insrc/main.tsto fetch complete presentation data usingpresentationUUIDGet()APITechnical Details
ProPresenter.presentationUUIDGet()to get complete presentation data with slide informationlabelfield from the slide data structureUsage
The variable
$(Propresenter-API:active_presentation_current_slide_label)will now display: