THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/10/2012 at 20:11, xxxxxxxx wrote:
Hi Everyone,
I am just starting with python within C4D and have made some progress, but I am confused about something. With the SDK it seems that there are things missing such as properties of particular objects. Take this code for example:
##########
import c4d
import random
def main() :
random.seed()
MyMat = c4d.BaseMaterial(c4d.Mdanel)
MyMat[c4d.SLA_DANEL_DIFFUSE_COLOR]=c4d.Vector(random.random(),
random.random(),
random.random())
doc.InsertMaterial(MyMat)
c4d.EventAdd()
if __name__=='__main__':
main()
###########
I found a tut on the net that led me in this direction and I am greatful for that, but nowhere in the SDK did I find any references to elements of an object (in this case properties of Mdanel like SLA_DANEL_DIFFUSE_COLOR) What am I missing or better yet is there a way that I can find some documentation on details such as this? Is there a python text file that shows these that I missed?
TIA,
Jeff