Correct way to add normal tag?

On 06/06/2014 at 08:58, xxxxxxxx wrote:

So I am making a simple normal editor but I cant seem to add a normal tag without cinema crashing.

import c4d
from c4d import gui
  
object = doc.GetActiveObject()
  
NTag = c4d.BaseTag(c4d.Tnormal)
object.InsertTag(NTag)
c4d.EventAdd()

I get the error: tag 5711 not in sync and then crash.

Has anyone run into this problem?

On 06/06/2014 at 10:34, xxxxxxxx wrote:

Hi Shawn,

Variable tags (uvw, point, polygon, normal etc.) have to be created and added to objects using either:

tag = c4d.NormalTag(op.GetPolygonCount())
op.InsertTag(tag)

or

tag = op.MakeVariableTag(c4d.Tnormal, op.GetPolygonCount())

On 09/06/2014 at 10:02, xxxxxxxx wrote:

Thanks Yannick!