mkue Posted August 13, 2019 Share Posted August 13, 2019 (edited) 190813_DrawBeam.vwxHi All, i try to write a script to toggle the "Draw Beam" option in the Lighting Instruments OIP. The goal is to switch quickly between beam visualization on/off of the different lighting instruments. I can see the checkmark appearing and disappearing after executing my script. However the function does not work, the beam is not shown/not disappears. If i check/uncheck the box it works as expected. Apart of that, how can i implement a selection by popup for the different instrument types? the script only works with the "Object by criteria" node, even if i paste the full criteria (('Lighting Device'.'Inst Type'='Robe BMFL Washbeam')) to a string node it does not work. Also i would like to have the draw beam on/off options as radiobuttons in a user popup but can´t find a node which does this. Tia Michael 190813_DrawBeam.vwx Edited August 13, 2019 by mkue Quote Link to comment
Pascal Völz | CADVölz Posted August 18, 2019 Share Posted August 18, 2019 Hi Michael, the beam must be updated after activating the control box. The easiest way to do this is to move the object with the vector 0/0/0. This is not the nicest method, but I have not been able to find another order so far. Kind regards Ing. Pascal Völz B.A. CADVölz www.cad-voelz.de DrawBeam.vwx Quote Link to comment
mkue Posted August 23, 2019 Author Share Posted August 23, 2019 (edited) Hi Pascal, sorry for the late answer and thank you for your answer, this is a brilliant workaround and it works like charm! Do you have any idea maybe why the dropdown list does not work? For my understanding i would need to have a input port in the "Objects by criteria" node where i can put in the criteria, coming from my field names list. Or is there another option to do that which i dont see? Also which node do i need to use to generate a user popup with radiobuttons for "true" and"false" ? With the existing node i can only choose 3 options in the OIP. Thank you in advance. Regards, Michael Edited August 23, 2019 by mkue Quote Link to comment
Pascal Völz | CADVölz Posted August 29, 2019 Share Posted August 29, 2019 Hello Michael, i will check this on sunday. Kind regards Pascal Völz Quote Link to comment
Pascal Völz | CADVölz Posted September 1, 2019 Share Posted September 1, 2019 Hello Michael, for your ideas you have to rewrite the original nodes. Enclosed you will find a file in which I have done this for you. Kind regards Pascal Völz DrawBeam.vwx 1 Quote Link to comment
mkue Posted September 23, 2019 Author Share Posted September 23, 2019 Thank you Pascal, this was exactly what i was looking for...i tried to modify the node already but i did not know i had to remove the first line to be able to do so! Thanks again for your detailed help! Michael Quote Link to comment
James H. Posted November 4, 2019 Share Posted November 4, 2019 Jumping in on this thread but slightly off topic, is there a way to assign a class to the beams drawn by the "draw beam" feature on Spotlight Lighting Devices so they can be turned on and off for various viewports (eg. section viewports vs render viewports etc.)? Quote Link to comment
Vectorworks, Inc Employee klinzey Posted November 5, 2019 Vectorworks, Inc Employee Share Posted November 5, 2019 @James H. There is a class setting for the beams in Spotlight Preferences. 1 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.