Setting vertex attributes using attrbute handles

   1652   0   1
User Avatar
Member
789 posts
Joined: April 2020
Offline
hello all,

In a dso I am writing I am setting all the attributes using attribute handles. For the prim and point attributes, this works perfectly. I am having more problems with vertices unfortunately.

I have a valid vertex and the GEO_AttributeHandle.isAttributeValid() returns true.

I now call

GEO_Vertex *vtx
attr.setElement(vtx)
attr.setV3(UT_Vector3(v, v,v));

The values for the vertex attribute stay (0,0,0) however. Is there a way to check if setElement() and setV3() failed?

Any help is appreciated,
koen
  • Quick Links