Jump to content
Developer Wiki and Function Reference Links ×

Changing Lighting Device Label Legends via script


Recommended Posts

I wrote a script that I could use with my StreamDeck to quickly change label legends of Spotlight Lighting Devices. Other fields can be set with the typical SetRFIeld, but the "Use Legend" field, which is where label legends are stored, doesn't seem to take the info from that.  I know it's the correct field, because "GetRField" will return the correct info.  I thought maybe it's because it's a drop-down field, but other drop-down fields do take SetRFIeld info.  

 

Any ideas?

Edited by SamIWas
Link to comment

They made some changes to the Lighting Device object back in 2020.  Instead of using the Use Legend field, try updating the Legend Symbol Definition field instead.  It's a "hidden" parameter that doesn't appear in the Object Info Palette or the parameter list in the Spotlight Preferences dialog.

Link to comment
39 minutes ago, Jesse Cogswell said:

They made some changes to the Lighting Device object back in 2020.  Instead of using the Use Legend field, try updating the Legend Symbol Definition field instead.  It's a "hidden" parameter that doesn't appear in the Object Info Palette or the parameter list in the Spotlight Preferences dialog.

Well, that was rude of them.  I never would have figured that out because it doesn't show up in spotlight preferences, worksheet field options, or anywhere else.  And a google search for that comes up with "did not match any documents".  So there is literally zero documentation of that.  I wonder if it's just something beta testers knew and it never became public. 

 

Thank you so much for that bit of info.  The script works now and will hopefully save me boatloads of time going to the OIP every time to search through 50 label legends.

Edited by SamIWas
Link to comment

I very much agree with you.  I used the script from @Pat Stanford that creates a worksheet of all parameters associated with the selected object to track it down.  If they're not going to include it in the parameters dialog (with maybe a Show Hidden Fields checkbox?), they could at least include it in an appendix on the Developer Wiki or the offline function reference.

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...