Materials bar in sketchup?

Hi everybody :slight_smile:

i’m looking for some help.

I’m wondering if it’s possible to make a big/long materials bar in Sketchup. just like the measurement bar at the bottom.

The reason is that i’m building a material list with very long names and I need to see the name on the object fast and easy and mark the text so I can copy it.

Now, the only way is to look at the color in the entity info box, and that’s not nearly enough.

best regards woody.

You can display a fairly long string in the UI.messagebox and an essentially arbitrary string in a WebDialog or HTMLDialog, but you need to clarify when and how you expect these things to obtain their input. Are you envisioning a Tool that you activate and it shows the applied material name when you click on an entity?

1 Like

Sorry I don’t know what you mean :slight_smile:
I will try to explain my self-better.
In the entity box, you can see the:
Layer, instance, type and volume:
I just want it to show me the material as well.
But my naming is very long, so the window where it’s being shown need to be long.
Hope it makes sense :slight_smile:

Thank you for your time :slight_smile:

There is no supported way to modify the built in dialogs, windows, or tray panels.

1 Like

aaaah okay.
so it would be an extension?
do you know any with that feature?

again thank you :slight_smile:

Yes it would need to be an extension (which I assumed you knew when posting this in the Ruby API category). There are lots of extensions that manipulate materials in various ways, but I don’t know if any of them do quite what you want. Search the Extension Warehouse, SketchUcation plugin store, Smustard, and other sites and see what you can find.

1 Like

I assume this was meant for the Feature Request section and not Ruby API section.

Hi Eneroth :grinning:
Big fan of your plugins.

I make a living drawing in sketchup and draw many constructions. but I need to make a solution where my components change color according to the length they end up having. so if I have a 45x145 wooden beam, I would like it to be able to change colors at every 300 mm interval. ie from 2100 up to 5400. do you think that is possible? I both scale and push/pull and make oblique cuts in them.

Hello, why don’t use a texture with colors?

1 Like

@woodydk Please update your forum profile to show the SketchUp version you’re using. SketchUp changes the Ruby version every few versions so we may need to know this in order to help you with any coding solutions.

I agree with @Cyentruk in that a textured material would be the only practical solution. Otherwise you’d have to be drawing edges every 300mm in order to have separate faces to paint with differing colors.

There is also the possibility of using a Dynamic Component that automatically changes color depending upon it’s length after scaling. Check out the discussions in the Dynamic Components category.


I don’t understand :slight_smile: