General Change Texture Plugin

This topic has been viewed 12016 times and has 2 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
User avatar
digitaltrails
Posts: 95
Joined: Sun Dec 28, 2014 12:20 am
Country: Wellington, New Zealand, New Zealand
Contact:

General Change Texture Plugin

Post by digitaltrails »

I've recently spent some time revisiting my code for the Change Texture Plugin (announced in this old forum posting).

I've just uploaded a new plugin - the General Change Texture Plugin. This new plugin generalizes the ability to find and change textures for all furniture, furniture materials, wall sides, room ceilings, room floors, and wall baseboards.

The plugin is useful in those situations where you want to trial different finishes for a large number of items. For example: choosing the right stain for refinishing all timber features; selecting a common stone for all bench-tops; or choosing which wallpaper to use to several rooms. The plugin is also useful for determining and tidying up which textures are in use.

The plugin can find and change both catalog and non-catalog textures. Non-catalog textures are often (always?) furniture default materials. When a default material is changed, the actual default remains unaffected, but it is overridden by creating an instance specific material (just as in SH3D proper).

This plugin is very new and I've used it much less than the old plugin. Definitely take a backup copy of your home model before using it.

Here's a screenshot:
Image

The texture handling code is almost all new (partly based on the the Global Color Change plugin). It uses a heuristic to select whether to identify a texture match by texture-name, material-name, or catalog-id. This seems to work OK for my own models and tests. Normally texture-names have priority. For furniture default-materials, the material-names have priority. Should the names lack values, it will fallback to catalog-ID.

The user interface is relatively unchanged from the original plugin. It does now have an About button. It is also now aware of undo/redo for it's own operations. It is not aware of changes make outside of the plugin, but using the "Show all" or "Show used" right-mouse actions will force it to rewalk and incorporate outside changes (and you can always close and reopen the plugin). As before, the undo/redo actions appear under the main SH3D edit menu.

One limitation I've noticed is that if the plugin is brought up while the home is still loading the plugin can wind up with an incomplete view of what's in use.
granitehead
Posts: 6
Joined: Tue Jan 26, 2021 11:52 pm
Country: United States

Re: General Change Texture Plugin

Post by granitehead »

This works just *great*! Thanks so much!!
User avatar
digitaltrails
Posts: 95
Joined: Sun Dec 28, 2014 12:20 am
Country: Wellington, New Zealand, New Zealand
Contact:

Re: General Change Texture Plugin

Post by digitaltrails »

This works just *great*! Thanks so much!!
Thanks, it's great to get some feedback.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests