検索 - User list
Full Version: VEX copy point
Root » Technical Discussion » VEX copy point
aeaeaeae
When adding points in VEX using addpoint() is there a smart way to copy all the attributes from an existing point?

In my case I need to insert a point on a curve, and I'd like to avoid having explicitly set which attributes to copy.
BabaJ
It's done automatically.

However, you will have to set the values of those attributes yourself, otherwise the default values will be set to 0.
aeaeaeae
I was hoping for a build-in way to automate that, f.ex. when adding points to DOP geo which tends to have a long list of attributes.

Otherwise, for my case I found a way around using the polycut SOP, it preserves the attribute values.
mawi
int addpoint(int geohandle, int point_number)
Creates a copy of a point, including attributes and group membership.
BabaJ
Yes that works if you reference a point number.

However, if one wants to create a new unique point with a vector instead of an existing point number;

The attributes are set to 0.
tamte
I'm assuming you are inserting points inbetwen other points, so you can't just clone a point, in that case you can easily interpolate all attributes from those points using Attrib Interpolate SOP afterwards, you just need either primnum + primuv coords, or pointarray + weightarray
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB