It would save me having those two pre-set scenes in my template. More importantly, I would think it is common to want to toggle wholesale tag visibility like this, if only to check for rogue elements.
At present (and without scenes set up to do the job), if you want to turn all tags off, you have to highlight them all, excluding Untagged, and toggle the visibility. When you want to turn them all back on again, you do the reverse. Itās not too hard but it would just be quicker still if you could avoid having to do any selection by toggling the āeyeā next to Name.
A rightclick option with āIsolate layer Tag would be nice per tag and āshow allā and āhide allā on top.
Ofcourse, this is allready implemented in Trimble Connect:
Jack, I guess that would achieve much the same thing. Presumably, if you Isolate Untagged that would be the only tag left showing and Unisolate would reverse the filter.
Iām not sure of the difference between Unisolate and Show All. I also canāt think why you would want to Hide All if that means all tags, including Untagged, are off (something that is not currently possible in SU).
Show all is when you didnāt isolate a layer, but just turned some off with the eye-icon. Having the option to turn all off just means that you wonāt see anything, handy if you want to load another model ( you can view different models at the same time)
I guess youāre right that I could group all my tags under one folder and use that to turn everything on and off in one go. And if you could have more than one level of nesting, that would be a realistic option. But I wouldnāt want to use up all my folder options just for that one task. In your example, you didnāt turn all tags off I noticed.
To expand on that, I mainly use All Off to check that I donāt have any loose geometry left ungrouped. So I just want a quick and dirty way to do that without laboriously selecting a long list. And then to toggle and return to All On just as quickly. At present, I have two ways to do that. One is to set up a scene with all tags set to off. The problem with that is that, as you add tags, you have to remember to go back into the scene and turn the new tag off. The other way is to select the whole list of tags in the dialog box and hit the eye icon.
I know I am suggesting a very small degree of improvement but it is a facility that is commonly found elsewhere so you could argue that it might be expected.
It creates a menu item in Tools (Iāve set up a shortcut) and will set the active layer to untagged then will toggle all tags except untagged on / off.
Iām not fluent in Ruby so the above might not be quite right or efficient.
Not being a coder myself I am not even sure where this script would be put. Also, is there any way to tell if it will work on a Mac without the trial and error?
I wrote the script in a text editor and saved it with a rb extension ( e.g. toggle_OnOff.rb ) to the plugin folder ( donāt know where it is on a mac ).
When you next start SketchUp the script will be active.
If it doesnāt work then you can delete it from the plugins folder.
( Thereās probably a āproperā procedure to do thisā¦? )
Ha! I noticed that too and changed it, then reloaded. But I still got the error message. Iām guessing maybe scripts work a little differently in the Mac OS? Maybe @DanRathbun or @slbaumgartner know?
I agree, Steve, but all I did was highlight Paulās text, then copied and pasted it into TextEdit. Admittedly, I wasnāt allowed to save it with the .rb suffix. So I saved it without and then changed the suffix afterwards. Could that have screwed it up?
My TextEd screenshot above was after changing the suffix. The text doesnāt look any different to the original.
I just tried using an online html editor and pasted the text into that. But that also created an error message (though a bit different).
OK, Iām out of my depth now and looking for some water wings.
Yes, (Steve is correct it got saved as RTF) ā¦ it needs to be saved as UTF-8 encoded plain text with a .rb file extension. (You can always save it as .txt and then rename it after the save.)