SamIWas Posted September 2 Share Posted September 2 (edited) 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 September 2 by SamIWas Quote Link to comment
Jesse Cogswell Posted September 2 Share Posted September 2 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. Quote Link to comment
SamIWas Posted September 2 Author Share Posted September 2 (edited) 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 September 2 by SamIWas Quote Link to comment
Jesse Cogswell Posted September 2 Share Posted September 2 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. 1 Quote Link to comment
Pat Stanford Posted September 2 Share Posted September 2 Read through the thread. TLDR: Select an object on a Design Layer (not in a wall or group or symbol) and run the script. You will get a worksheet that lists all of the fields and their types in the Parameter Record for the object. 2 Quote Link to comment
Recommended Posts
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.