@bentraje
are you writing the code in a python tag ? AFAIK you don't have to use c4d.EventAdd with python tag , because it auto update itself .
re:"his parameter (based on the attribute manager) accepts percentage values"
well , in real life percentages are number divided by 100 , so c4d expect you to give values from 0(0/100) to 1 (100/100). so 80% should be 0.8 .
re :I was wonderig if there is a way to this.....
yes you can set the script affect the selected object instead of searching by name , just use :
obj = doc.GetActiveObject()
doc refers to the current active document , op refers to the object that runs the script (if you used a python tag then it will be called op , if you used python generator it will be called op ...etc )
so op and doc are pre-defined variables to make work easier .
best regards ,