MeTheMachine Posted November 3, 2022 Share Posted November 3, 2022 Using "Custom Selection..", I can create the following python script import vs; vs.DSelectAll(); vs.SelectObj("INSYMBOL & INVIEWPORT & ('Lighting Device'.'Universe'='1')"); Ultimately, I would like to not have "Universe" hard coded and have the ability to use a PopUp and enter a value for Universe. Any of you python people willing to help me get something going.... Quote Link to comment
JBenghiat Posted November 4, 2022 Share Posted November 4, 2022 import vs vs.DSelectAll() universe = vs.IntDialog("Enter a universe number", 1) vs.SelectObj("INSYMBOL & INVIEWPORT & ('Lighting Device'.'Universe'='{}')".format(universe)) Note, best practice is no semi-colons. with each instruction on a separate line 1 Quote Link to comment
MeTheMachine Posted November 4, 2022 Author Share Posted November 4, 2022 Thank you so much! Slowly working myself back into scripting. Thanks again! Worked perfectly. 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.