|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Replace light sources plug-in |
|
| Print at Jan 21, 2026, 6:22:35 AM | View all posts in this thread on one page |
| Posted by enkonyito at Mar 21, 2021, 2:55:16 AM |
|
Replace light sources plug-in version 1.0
Use: 1- Select a light source in the catalog 2- Select a light in the plan 3- Click on the action of the plug-in "Replace light sources" ![]() (source code included) ---------------------------------------- EnkoNyito |
| Posted by Puybaret at Mar 22, 2021, 11:56:34 AM |
|
Re: Replace light sources plug-in Fun idea ![]() ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by enkonyito at Aug 9, 2021, 5:43:27 AM |
|
Re: Replace light sources plug-in This plug-in allows you to change the color of the light sources integrated into a light. version 1.2
User's guide: 1- Select a light or a group of lights in the plan 2- Select a light source in the furniture table 3- Click on the action of the plug-in "Replace light sources" ---------------------------------------- EnkoNyito |
| Posted by hansmex at Aug 9, 2021, 9:19:47 AM |
|
Re: Replace light sources plug-in Enko, Could you explain in more detail how the plugin works? I tried to select (highlight) a lamp in the furniture list, then select (highlight) several lights (light source and lamp)in the 2D window, then activate the plugin. Nothing happens. Which light sources should be selected first? and How? Which light sources (or lamps) can be selected? Which lights (light sources or lamps) can be replaced? Thanks in advance. H ---------------------------------------- Hans new website - under constuction hansdirkse.info |
| Posted by enkonyito at Aug 10, 2021, 5:24:06 AM |
|
Re: Replace light sources plug-in Hans, The plug-in is compatible with SweetHome3D-6.5 and higher because it uses the new setLightSources method. This version 1.2 no longer takes into account the selection of light sources from the furniture catalog (CatalogLight class). It only takes into account the selection of light sources from the plan or from the furniture list (HomeLight class). Detailed guide: 1- Add to the plan a lamp with integrated light source (SweetHome3D library or personal light library) 2- Add in a corner of the plan or in a specific level a light source model (SweetHome3D light sources or light spheres that I created) 3- Select the lamp whose sources you want to modify and the light source model whose color you want to use 4- In the Tools menu, click on the plug-in action (this can be canceled in several times) 5- A message is displayed: "No light source model !" or "No visible light selected !" or "Light sources replaced." 6- Uncheck the Visible box of the light source model modification panel or make the specific level non-viewable 7- Make a photo rendering in quality 3 or 4 to see the result The default photo panel does not take into account (for the moment?) the colors of negative value (#FF8000). Enko ---------------------------------------- EnkoNyito |
| Posted by hansmex at Aug 12, 2021, 10:16:09 AM |
|
Re: Replace light sources plug-in Thank you!! Now it works! :-) H ---------------------------------------- Hans new website - under constuction hansdirkse.info |
| Posted by enkonyito at Jan 9, 2024, 2:16:06 AM |
|
Re: Replace light sources plug-in version 1.3
User's guide: 1- Select a light or a group of lights in the plan (with integrated light sources) 2- Select a light source in the furniture table (default catalog, LightShapes library, OtherLightTypes library) 3- Click on the action of the plug-in "Replace light sources" ---------------------------------------- EnkoNyito |
|
|
Current timezone is GMT Jan 21, 2026, 6:22:35 AM |