Add point to Primitive using scriptSop?

Hi,

maybe I am not using the scriptSop in this way, but I want to add additional points/vertices to a primitive. I thought scriptSop will allow me to do that, but I searched through the Python doc, and can’t seem to find member function that would allow me to add a point to a primitive. Maybe I missed something?

The appendPoint function does allow me to add point, however, that point doesn’t belong to any polygon, and therefore the polygon is not reshaped to take that new point into account.

On a side note, is it possible to instantiate a point? I tried the standard Python ways of creating an object from a class, but no dice. I kept getting errors saying Point or td.Point cannot be found.

Thank you.

Right, unfortunately you cannot append to an existing polygon.
You would have to create a new polygon with the extra points, and .destroy() the previous one.

For instantiating points, you will have to use the appendPoint() method, as all points live within the context of a specific SOP.

Cheers,
Rob.

Thanks Rob, I will try it out.