Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/03/2011 at 01:08, xxxxxxxx wrote:
Hi everyone,
another question rises
myobject = c4d.BaseObject(c4d.Ocylinder) #Allocate a new object doc.InsertObject(myobject) #Insert the object into the documents object list myobject.MakeTag(c4d.Tphong) myobject[c4d.PHONGTAG_PHONG_ANGLELIMIT] = 1 myobject[c4d.PHONGTAG_PHONG_ANGLE] = 22 # BaseDocument.SetActiveTag(myobject)
you can see at my code that i tried several stuff already but can't get it to work ... I want to set the atributes of the phong tag i created ...
thanks in advance mogh
On 09/03/2011 at 01:25, xxxxxxxx wrote:
'myobject' is a cylinder.
MakeTag() returns the new tag.
mytag = myobject.MakeTag(c4d.Tphong) mytag[c4d.PHONGTAG_PHONG_ANGLELIMIT] = 1
On 09/03/2011 at 01:51, xxxxxxxx wrote:
thanks its working kind regards mogh