Print at Jan 28, 2026, 2:23:23 AM

Posted by Keet at Jul 12, 2024, 12:39:12 PM
Re: Move light power setting from object to property
You can already have more than one material listed in the lightSourceMaterialName# property. Just separe them with one or more spaces.
I didn't know that. That will solve the problem in some cases where lightsources need different colors. They will still be controlled with a single power setting but tweaking with more or less transparency of a panel in front of the lightsource can solve that in some situations.
Then, sorry, but adding a light power setting to the Material modification dialog box is weird too, even if it wouldn't be too difficult to program.
I don't understand why that is weird. It's a property of the material so the only logical location is in the modify material dialogue. I always thought that the current location is weird. Its current location suggests that it is a property of the object while it's a material property. The fact that you can list multiple material names clearly proves that.

I know that adding to the dialog is easy. The storage in the pluginFurnitureCatalog.properties file is already supported. Adding a similar property lightSourceMaterialPower# adds the option to preset the power settings. Without that property line all default to 50%, so backward compatibility solved too. Storage in the Home.xml file is also easy (see my first post in this thread).

As a developer I have made wrong design decisions too but I always redesign and refactor them, hopefully before a client comes with a request that needs the change anyway. I do understand your reluctance to change this, I just keep hoping you get over the 'weird' issue since technically I see no real problem smile
The biggest problem is time and priorities, now those I understand VERY well!
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects