On 13/04/2015 at 14:53, xxxxxxxx wrote:
Hi Yannick,
Just the usual method i suppose for R15 and below - grab the material from the doc ( or create it ) and set the specular and reflection channel properties directly:
if mat.GetType() == c4d.Mmaterial
mat[c4d.MATERIAL_SPECULAR_HEIGHT] = 1
mat[c4d.MATERIAL_SPECULAR_BRIGHTNESS] = 1
mat[c4d.MATERIAL_USE_ENVIRONMENT] = 0
That type of thing..
Any possibility of the new reflectance properties being implemented in R16 anytime soon?
The only potential issue with that is that commands such as New to create new layers inside Reflectance, and things like that, would have to also be accessible in Python, or at least have methods for them..
[edit] The plugins are an import/export suite between 3dsMax and C4D, so we import scenes that have been exported from Max via our exporter, and bring them into C4D whilst setting up all materials to be as closely matched as possible to what they were inside Max.
So unless there is some hacky way around this it's pretty much ESSENTIAL that we can still access these things..
[edit 2] Had to edit the above code as i accidentally used the vray material version, fixed.