cool Replacer Plugin 1.1

This topic has been viewed 45300 times and has 8 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
Ollie_Jess
Posts: 13
Joined: Sun Apr 10, 2022 3:53 am
Country: México

Replacer Plugin 1.1

Post by Ollie_Jess »

Hello Sweet Home 3D community, I developed the version 1.1. of the Replacer plugin, that does a simple task but can be useful in some cases, which is to replace furniture by another, copying certain properties of the furniture to replace to the replacement, but you can choose the ones that you want, like x, y, elevation, angle, height, width, depth, color, texture, etc. In addition, you can choose to replace groups of furniture as one object or replace every piece of furniture in the selected groups. You can also choose to replace only the selected furniture or all the furniture that matches the selected furniture.

This is the direct download and is also on SourceForge

The new improvements in version 1.1 are:
  • • Added an option to transfer the brightness of the original object to the replacement.
    • Added an option that allows transfer light power, especially when both the original and replacement objects are light sources.
    • If the replacement object’s color or texture needs to be transferred, but the original object has default color and texture, the plugin will use the texture/color from the first material found or the first material modified by the user as the overall replacement color/texture.
    • Fixed a bug where replacing furniture within groups would cause the replacements to be placed outside the groups.
    • When selecting to replace all matching objects and choosing a group, the replacement will apply to that group and other groups with the same quantity and models of furniture.
    • Fixed other bugs regarding the replacement of groups and furniture within groups.
    • Source code within the plugin.
These are the steps for replace furniture with the plugin:
Before replace the furniture
Image

Step 1
Image

Step 2 - Choose "Replace Furniture..." in "Tools" menu option
Image

Step 3
Image

Step 4 - Select the replacement and configure the replace options
Image

Success Message
Image

Result - The replacement of the objects (in this case, the trees) has been done
Image

Hope you like the plugin!
User avatar
Keet
Posts: 1807
Joined: Fri Apr 08, 2022 7:13 am
Country: Netherlands

Re: Replacer Plugin 1.1

Post by Keet »

Thank you for this update. Recently I tried it but it wouldn't work with the latest version of Sweet Home 3D. I don't use it very often and up until now I did it by hand by editing the home.xml file and replacing the object in its zipped directory. This is much more convenient and I will need it soon to replace dummies with real objects and v.v.
Dodecagon.nl
1300+ 3D models, manuals, and projects
User avatar
Ollie_Jess
Posts: 13
Joined: Sun Apr 10, 2022 3:53 am
Country: México

Re: Replacer Plugin 1.1

Post by Ollie_Jess »

I have the latest version of Sweet Home 3D (7.2) and it works fine, probably the reason of your problem is your version of Java. What is yout problem with the plugin specifically?
User avatar
Keet
Posts: 1807
Joined: Fri Apr 08, 2022 7:13 am
Country: Netherlands

Re: Replacer Plugin 1.1

Post by Keet »

No problem starting Sweet Home 3D with this new version. The previous version caused the problem.
Dodecagon.nl
1300+ 3D models, manuals, and projects
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Replacer Plugin 1.1

Post by Puybaret »

Keet, Ollie_Jess updated his plug-in a week ago to ensure it will work with older Java versions too. Be sure to download the latest version 1.1.
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
Keet
Posts: 1807
Joined: Fri Apr 08, 2022 7:13 am
Country: Netherlands

Re: Replacer Plugin 1.1

Post by Keet »

I'm sorry for the misunderstanding. 10 days ago, so before the update, I tried the 1.0 version which prevented Sweet Home 3D from starting. (I reported that here: https://sweethome3d.com/support/forum/v ... t,30#61837)
In this thread I just wanted to thank Ollie for the update and mentioned the problem with the old version. It was not intended as a report about a problem with the new version. I should have been more clear about that.

There is no problem with this new version.
Dodecagon.nl
1300+ 3D models, manuals, and projects
User avatar
Ollie_Jess
Posts: 13
Joined: Sun Apr 10, 2022 3:53 am
Country: México

Re: Replacer Plugin 1.1

Post by Ollie_Jess »

Thanks Emmanuel for clarifying to Keet that the new version is compatible with the latest version of Sweet Home 3D.
User avatar
Ollie_Jess
Posts: 13
Joined: Sun Apr 10, 2022 3:53 am
Country: México

Re: Replacer Plugin 1.1

Post by Ollie_Jess »

Thanks for clarifying that Keet! Now I understand that you have no problems with version 1.1. I apologize, since I also did not clarify from the beginning that for this version I fixed the incompatibility problems of the first version.
User avatar
Keet
Posts: 1807
Joined: Fri Apr 08, 2022 7:13 am
Country: Netherlands

Re: Replacer Plugin 1.1

Post by Keet »

Any chance that the instruction images from the first post can posted again? Or a simple textual instruction. The old images are no longer available.

[s]What I do now is select a model and start the plugin. I get a dialog with the selected model in the left list and a empty right list (the 'replace with' list). There is no way to add/select a model to replace the first selected model. What am I doing wrong? (I think I am missing what the first step is "Before replace...".)[/s]

I figured it out. After selecting the model to replace and starting the plugin you select the replacement by selecting a model in the 2D pane.
Dodecagon.nl
1300+ 3D models, manuals, and projects
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest