|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: HomePieceOfFurniture - model color » » » » Post: HomePieceOfFurniture - model color |
Print at Dec 16, 2025, 1:36:00 PM |
| Posted by kleiba at Nov 11, 2011, 8:46:31 AM |
|
HomePieceOfFurniture - model color I'm writing my first plugin for SweetHome3D. So far, the experience has been excellent, I was able to implement very quickly what I had in mind. However, there's one last thing left that I'm stuck with right now. I'm trying to get the color(s) of a certain HomePieceOfFurniture that is part of a Home. When I set the color in the application, I can call HomePieceOfFurniture.getColor() to get an RGB Integer. However, for pieces where the color has not been set, this will return null. Which is understandable. But how do I get to the colors of the pieces of the actual model? Say I have a table - how do I find the RGB value of the table top? Any advice is greatly appreciated! Thanks in advance. |
|
|
Current timezone is GMT Dec 16, 2025, 1:36:00 PM |