Print at Dec 21, 2025, 11:49:00 AM

Posted by digitaltrails at Sep 12, 2015, 6:20:02 AM
Change Texture Plugin
I was trying to evaluate different surfaces for a kitchen countertop where the countertop was made of a dozen or more cupboard units, drawer units, sink units, plus boxes representing a waterfall end. Changing each texture was getting tedious.

So today I wrote a plugin that traverses the furniture model and replaces one texture and with another.

The plugin first presents a list of "from" textures, then a list of "to" textures. It then lists furniture items that were modified.

  • I'm not too familiar with the internals of Sweet Home 3D, you should backup your model before using it.
  • There is no undo capability, but you can always exit without saving.
  • After using the plugin I have managed to save and re-open quite a complicated model, so it appears to be working.
  • Matches are made by comparing texture names. Sweet Home 3D seems to permit more than one texture with the same name. My guess is that this plugin will alter all textures with matching names.

If there is sufficient interest, I'm open to putting more work into this plugin. Plus anyone should feel free to run with code and concept. Possible enhancements:

  • It would be nice to be able to use Sweet Home 3D's actual texture selection dialog (or similar).
  • It would be good to allow textures for walls etc to also be changed (checkbox options).
  • It would be nice if undo could be made to work.
  • Optionally filtering the texture list could be useful.

Sourceforge Ticket (where Jar with source is attached):

https://sourceforge.net/p/sweethome3d/plug-ins/12/

Installation is as for other plugins. Have fun.