Search the Community
Showing results for tags 'colour'.
-
Hi everyone, I would like to start automating some tasks I am performing in VW using Vectorscript but am new to it. The first task I would like to automate is SELECTING ALL OBJECTS OF A CERTAIN FILL FORE COLOUR (rgb values, in this case specifically 255, 255, 204) AND CHANGING THE FILL FORE COLOUR TO DIFFERENT COLOUR (rgb values 187, 209, 96, ideally, but not necessarily also 40% opacity). It is important to perform all at once, since I want to be able to perform multiple such specific colour and line colour/weight changes all at one go. From studying tutorials and adjusting the script in 'Setting/Changing Object color' thread, this is what I have: PROCEDURE GreenUpdate; FUNCTION MakeItGreen(h :HANDLE) :BOOLEAN; VAR r, g, b :LONGINT; BEGIN GetFillBack(h,r,g,b); IF (r = 255) & (g = 255) & (b = 204) THEN SetFillBack(h,187,206,96); GetFillFore(h,r,g,b); IF (r = 255) & (g = 255) & (b = 204) THEN SetFillFore(h,187,206,96); END; BEGIN { Each object option here is set to affect all objects, on all layers, using a deep traversal} ForEachObjectInLayer(MakeItGreen,0,2,1); END; Run(GreenUpdate); The script compiles but does not do anything! I tried to delete as little from the original as possible not to mess it up.. Thanks so much for helping 🙂
- 4 replies
-
- vectorscript
- selection
-
(and 1 more)
Tagged with:
-
Hello. Anyone finding it hard to change the colour of glazing bars , and glass, on the Wasco Skylight "Ext Pyramid 350PHYG 1212 Slab" ? I downloaded this symbol fromm VWX libraries. Great detail. As expected it's several nested groups. At the core of these the glazing bar is a Generic Solid. Which seems not editable (Edit/greyed). I've experimented with class attributes, changing classes, etc etc. But black is the only option is seems? Wasco actually ship in various colour options. Any insights welcome. Thank you. VWX 2020, latest SP.
-
Heya Team, I'm feeling like a real noob. Id like to know how to colour the 3D component of truss made with the straight truss tool without changing the 2D fill colour. I also cant add a texture to the 3D model, like chrome. Can anyone point me in the right direction? Thanks in advance.
- 5 replies
-
- straight truss
- texture
-
(and 1 more)
Tagged with: