Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 7
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 9196 times and has 6 replies Next Thread
enkonyito
Advanced Member
Member's Avatar


Joined: May 28, 2015
Post Count: 601
Status: Offline
Reply to this Post  Reply with Quote 
Replace light sources plug-in

version 1.0

  • replacing the light sources of a light in the plan with those in the catalog
  • compatible with SweetHome3D-6.5 and higher


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
[Mar 21, 2021, 1:55:16 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Replace light sources plug-in

Fun idea smile
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Mar 22, 2021, 10:56:34 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
enkonyito
Advanced Member
Member's Avatar


Joined: May 28, 2015
Post Count: 601
Status: Offline
Reply to this Post  Reply with Quote 
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

  • replacement of the light sources of a light in the plan by those of the table
  • taking into account the selection of a group of lights
  • note: the default photo panel does not take into account negative colors



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
[Aug 9, 2021, 3:43:27 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 3948
Status: Offline
Reply to this Post  Reply with Quote 
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
[Aug 9, 2021, 7:19:47 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
enkonyito
Advanced Member
Member's Avatar


Joined: May 28, 2015
Post Count: 601
Status: Offline
Reply to this Post  Reply with Quote 
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
[Aug 10, 2021, 3:24:06 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 3948
Status: Offline
Reply to this Post  Reply with Quote 
Re: Replace light sources plug-in

Thank you!! Now it works! :-)

H
----------------------------------------
Hans

new website - under constuction
hansdirkse.info
[Aug 12, 2021, 8:16:09 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
enkonyito
Advanced Member
Member's Avatar


Joined: May 28, 2015
Post Count: 601
Status: Offline
Reply to this Post  Reply with Quote 
Re: Replace light sources plug-in

version 1.3

  • taking into account the lightSourceMaterialName# property
  • note: the default photo panel does not take into account some colors



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
[Jan 9, 2024, 1:16:06 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved