THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/11/2011 at 06:49, xxxxxxxx wrote:
Hi all
after solving my last Problem (thanks to nux95 )
Here a second Question:
How can I define the value of the Phong-Tag?
It should bo on an the angle should be 35° (0,61)
I catched something out of the Skript log and modified it.
But, it does' t work!
def setAllPolygonObjectsPhongTag(doc) :
obj = doc.GetFirstObject()
while obj:
if obj.CheckType(c4d.Opolygon) :
c4d.SetActiveTag(c4d.Tphong, 0) <------------
c4d.PHONGTAG_PHONG_ANGLELIMIT=True <------------
c4d.PHONGTAG_PHONG_ANGLE=0.611 <------------
obj.SetBit(c4d.BIT_ACTIVE)
else:
obj.DelBit(c4d.BIT_ACTIVE)
obj = walk(obj)
Does anybody has an idea???
Thanks
Rgds