Print at Dec 21, 2025, 7:45:19 AM View all posts in this thread on one page
Posted by bdfd at Jun 2, 2018, 12:18:14 PM
confused   Light properties
Hi,

who knows the name of the property to fix the brightness of a light source in the properties file named 'pluginFurnitureCatalog.properties' ?

confused
----------------------------------------
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K

Posted by Puybaret at Jun 3, 2018, 12:40:22 AM
Re: Light properties
The property is lightSourceColor#..., fully black matching no light, and white #FFFFFF matching a white light at full power.
See DefaultFurnitureCatalog.properties for examples.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by bdfd at Jun 3, 2018, 8:19:12 AM
Re: Light properties
Thank your for your return.

My ask has been not understand perhaps by using bad words, I wanted to say the power of lightsource (0 to 100%) and not the color. biggrin

I want to change the default value (50%) to 5% (for example).

but… I didn't see this in given file.

smile
----------------------------------------
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K

Posted by okh at Jun 3, 2018, 7:11:16 PM
Re: Light properties
You can find all the properties in DefaultFurnitureCatalog.PropertyKey.html.

You will, as indicated by Puybaret, need to adjust RGB down in sync. The power is, however, saved in Home.xml, as that reflects the adjustment made by the user in the design.

ok

Posted by bdfd at Jun 4, 2018, 6:19:30 AM
Re: Light properties
You can find all the properties in DefaultFurnitureCatalog.PropertyKey.html.
...
The power is, however, saved in Home.xml, as that reflects the adjustment made by the user in the design.
ok
Hi,

Great !
Do you know how to update this data in a sh3f file ?

biggrin
----------------------------------------
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K

Posted by Puybaret at Jun 4, 2018, 11:36:48 AM
Re: Light properties
Use a zip utility to extract the PluginFurnitureCatalog.properties file from a SH3F file and rezip it at the end, and a text editor to edit the PluginFurnitureCatalog.properties file.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by okh at Jun 4, 2018, 11:51:52 AM
Re: Light properties
Do you know how to update this data in a sh3f file ?
Sorry if I was unclear. There is no power setting in .sh3f/PluginFurnitureCatalog.properties (only in .sh3d/Home.xml). In .sh3f/PluginFurnitureCatalog.properties you can use the html (six digit hex) colour notation:

a very bright white light would be:
lightSourceColor#xxx=#FFFFFF

a 'normal sh3d white' lightsource is (if I remember):
lightSourceColor#xxx=#BBBBBB

a much less bright 'white' light would be:
lightSourceColor#xxx=#222222

ok

Posted by bdfd at Jun 4, 2018, 12:51:00 PM
Re: Light properties
Do you know how to update this data in a sh3f file ?
Sorry if I was unclear. There is no power setting in .sh3f/PluginFurnitureCatalog.properties (only in .sh3d/Home.xml). In .sh3f/PluginFurnitureCatalog.properties you can use the html (six digit hex) colour notation:

a very bright white light would be:
lightSourceColor#xxx=#FFFFFF

a 'normal sh3d white' lightsource is (if I remember):
lightSourceColor#xxx=#BBBBBB

a much less bright 'white' light would be:
lightSourceColor#xxx=#222222

ok
TY okh.

Damned, a parameter only manually update. crying

Perhaps a adding to do in whislist section for next 5.8… wink
.
----------------------------------------
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K

Posted by enkonyito at Jun 5, 2018, 12:03:47 AM
Re: Light properties
@bdfd
I want to change the default value (50%) to 5% (for example).
This is possible in a derived version of SH3D by modifying line 53 of the HomeLight.java file.
----------------------------------------
EnkoNyito

Posted by bdfd at Jun 5, 2018, 6:15:15 AM
Re: Light properties
@bdfd
I want to change the default value (50%) to 5% (for example).
This is possible in a derived version of SH3D by modifying line 53 of the HomeLight.java file.
TY enkonyito.

But I don't like this because it's "all or nothing"... biggrin

I explain : I want to update ONE object in a sh3f not all objects of same type in SH3D.

wink
----------------------------------------
Evil progresses when good people do nothing!
---
SH3D 7.1 and nothing else - W11 64b in 4K