Python (2023)
In 2023, we added commands, functions, and a new material API.
Python
- Added the Python commands,
vrSpectrum, and functions likevrdPlasticMaterial.setDiffuseColorSpectrum, to set a spectrum to a material. - Added a whole new material API, as a result of the Material Editor decoupling project.
- Added these light spectrum functions:
vrdBaseLightNode.getDiffuseColorSpectrum,vrdBaseLightNode.setDiffuseColorSpectrum,vrdBaseLightNode.getGlossyColorSpectrum, andvrdBaseLightNode.setGlossyColorSpectrumto set a spectrum to a light. This can be very helpful when creating variant sets to switch between different colors, without duplicating the light.