What is wrong with the provided example? it creates a Part object with custom properties.
Thats a good idee! Maybe bernd knows how to use it, he worked heavily on itBut we do have Material module... And refractive index is a material property. There should be a way to use material module for the purpose; if there isn't, we shold look into how to improve it.
bernd wrote: Ping