[Closed] GetPropNames on a extended material possible?
Hi guys!
I have done a extended material long time ago and now I have a script that need to read the prop of that material with getPropnames $.mat
My extended material name is VRaySpecialMat and extend a standard VRayMtl.
On a object that have a VRayMtl if I do getPropnames $.mat on it I get all prop of the VRayMtl.
On a object that have my VRaySpecialMat on it if I do getPropnames $.mat I only get the extended prop and not the base VRayMtl one! I tryed everything and can’t find a way…
Need Help!
Regards,
OZRay
Ok it’s working but…
If I do this: getpropnames VRayMtl This is working.
If I do this: getpropnames VRaySpecial This is working but only the extended prop.
This is not working: getpropnames VRaySpecial.delegate
Is there a way to get all the prop of the base + the one from the extended Mtl ???
Thanks!
OZray
in you case VRayMtl and VRaySpecial are classes. To get properties of delegate you have to have an instance of VRaySpecial material .
mat = VRaySpecial()
props = getpropnames mat.delegate