View Imported SketchUp Model as Tag Colour?

Is there a way to have your Sketchup inserted model to display as colour by tag?

turn colour by tag on ? :clown_face:

I assume you mean to have your main model with normal materials, and only your imported one with colour by tag ?
nothing native I’m afraid. Probably some plugin to apply the tags colour as a face material, haven’t seen / searched for one.

edit : ok, a quick search tells me that back in 2022 it wasn’t possible due to limitation of the API. can’t grab a tag’s material and apply it as face material…

what you could do is a little bit destructive.

prior to your import, you could remove all materials in your (soon to be imported) file.
then, hide all the tags but one, select all, and paint with a single colour / material.
repeat.

you’ll end up with a model where all the things that have a specific tag have a specific colour, even in normal mode.

Darn, we can’t absorb destruction of the models. Just being able to display in colour by layer would have saved us about 1000hrs per year!

I wonder, maybe you could sort something out using theme plugins like this one

they allow you to switch between themes, sets of materials.

In LayOut you can override the style of the viewport and set it to color by tag

Am I misunderstanding? There IS a color by tag option in SketchUp.
Can’t that be used?

they don’t want to use colour by tag on the whole file.

only on some imported parts.

I use an old plugin called Grey Scale… it magically converts colors in your model to grey scale, and will magically convert back if you need.

Here is a test:

Run plugin:

Make new file with fun colors:

Import model that was saved after using ā€˜Grey Scale’ to the new file:

So it would seem that you might be able to hire a developer to create a temporary override of the colors in your model to the color that is assigned by the Tag. You can than save this and import it into your ā€˜normal’ colored model. As a component if you change things in the ColorizedByTag model you can reload / update that in your ā€˜normal’ model.

This is an interesting idea. You happen to be talking about color by tag, but in general having any style applied to only specific objects could be useful. I started an internal discussion about this.

Wow! I’ve been playing around forever and can’t work out how to do that! Any tips on how?

In sketchup yes! When the model is pushed to Layout, the inserted model reverts!

We actually want both; scene dependent! We will render probably half of the scenes in the LayOut file in shaded mode and half in colour-by-tag!

Not so much to specific objects, but to have LayOut respect the style applied to a SketchUp scene! Colour by tag seems not to be respected!

I will check into that.

Seems the style you used for viewport in LayOut is activating color by tag and switch on ā€œDisplay in Hidden line modeā€. In this style, only tags have textures can be displayed as textured or colored.

The solution is set a white texture for each tags, then change the color to be able show colors for tags in Hidden Line Mode.
…

Or turn off Hidden line mode.

Edited: I missed the image you posted.

I did try it, and the style seems to be honored.

It is probably mentioned already, but can you show a file or steps, that leave you with a document in LayOut that looks different to what the SketchUp model showed?

Do you save your model before you update your scene in LayOut? That may push the Color by Tag so LayOut respects it.

Eric S described an extension for SketchUp that he thought would be cool in one of his videos; ā€˜Color by Tag State’. I tried my hand at it and made one that saves Tag Color States and then allows linking them to scenes:

I don’t use LayOut much but I have a hunch that you need to save your model and then update in LayOut to get CBT to work.

Ok I persisted! I had to set a scene with colour by tag, I was relying on the colour by tag selector in the tag manager to set the style, that does work in the sketchup scene, but not when imported to LO!

If setting as colour by tag in the modelling setting under the scene manager it works for Sketchup and Layout imports! Left Scene 1 (colour by layer), Right Scene 25 (shaded - colour by layer turned off).

Turned out I was counting on the tag manager to set the scene style (which works in Sketchup) but as I didn’t setup an actual style with colour by tag, it didn’t work in Layout! Duh!!