Hi Max,
now it works perfectly!
Copying of material name to style name is beautiful feature.
Do you plan in future to allow adding of custom materials inside script UI?
For example PCB, which contains mechanically many of components with different materials, can be modelled as an one solid for simplification of assemble. For calculation of Centre of Mass of all assemble it should be enough to set only weight of PCB, script can calculate volume of solid and from calculated volume and known weight it can be calculated density.
Probably it will be enough to allow (checkbox) recalculate density in stead of volume when mass is changed and copy as a custom material ( "Object name" for example) to style name.
Thank you for excellent script!
Mik
|