In the previous versions of SU (when the trays was separated) I could do it to collapse/open the layer tray, but the collapse is no longer accessible via Ruby. So it is what it is.
I was just playing. This is a cool way to create a partial X-ray view without having to edit the materials. I did that for just steel parts in this model.
I see now you are using SU2020 – at least referring to Tag’s and not confused that “Untagged” Tag still shown as “Layer0” in selection window… This should be adapted too >> Todo list!
You can select only a few tags/layers (as much as you want) already… Or you want to apply different colors and different opacity for same tags/layers?
Can you explain more, please!
Actually what I was wishing for is the ability to show some tags/layers by color and others not. In my model of the key, I have the text labels on the bakelite base painted white. With color by tag, the white isn’t displayed. I’m not really thinking that this needs to be added to your extension, though. If I really wanted to make that happen, I know how to do it with Color by Tag.
Sketchup.send_action('showLayerPanel:') ## toggle Layers ## now tags
# or, but not both at once...
Sketchup.send_action('toggleInspectors:') ## toggle all Dialogs
Yes. That sort of thing could work. For my use, at least, it wouldn’t be a thing I would use all that often. Well, I didn’t think I’d use the Alpha setting for Color by Tag but I see some real possibilities with it.
Well. DisplayColorByLayer is a RenderingOptions key. The RenderingOptions class contains method to extract the rendering information for a model. The majority of the rendering information returned exists in the Styles dialog.
So, Currently can not be assigned to Tags…But I see a potential too!
This is awesome, thank you. You just saved me a lot of tedious work.
I noticed one thing, not sure if it was mentioned earlier …
I opened the extension, hit ok for each screen of tags, keeping them all at ‘1’.
I want everything white, so I set all the values to ‘255’ (I didn’t touch the dashes option)
It did it’s thing and worked exactly as hoped.
Except that it removed all my tags from their tag folders. The folders are there, just empty, and the tags are all there, just not in their folders.
Oh, Yes. The tag folder was added to SU and to the Ruby API after the plugin released. Therefore this can’t handle the folders…
Currently I cant promise if and when can I revise…
Thank you for this! I just downloaded the last .rbz from this thread and tried to run it on Pro2021 on a MAC. I tried to set all the layers to color zero (trying to replicate Matt Donley’s section cut trick). Is there a way to do this?
If you tried, how you did it and what result you got?
What the “color zero” means? Did you put 0 s instead of Do not change! s to all Red, Green, Blue, Alpha fields in a corresponding box?
I did not checked what this trick does…
Note: Be aware the snippet is made for SU2019 and SU2020, so it will not handle the Tag Folder structure properly if you change the opacity. If you leave the “Do not change!” at the Alpha, it should be okay.
In any case it is beta version, use your own risk. Currently I did not planned to update.