Jump to content

Spotlight - Draw Beam not executed

Recommended Posts

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.







Screenshot 2019-08-13 14.12.52.png

Edited by mkue

Share this post

Link to post


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.





Share this post

Link to post

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.






Edited by mkue

Share this post

Link to post

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!



Share this post

Link to post

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.)?

Share this post

Link to post

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.

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.


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...