Florian Thamer

Florian Thamer

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

VEX: Adding pts inbetween pts (and shifting point IDs) Feb. 11, 2021, 5 a.m.

Hi there,
Lets say I have a straight line with points 1, 2, 3, 4
I want to add a point between 2 and 3

If I simply use addpoint(0, newPosition) I'll get 1, 2, 5, 3, 4

Is there a way of adding a point inbetween 2 and 3 so that the IDs after point 2 increase?

I imagine splitting the array of all points in 2, adding my new array of points and then connecting all 3 together again.
How would I go about that? I think I'm just missing the name of the array that contains all points in my geo, any clues?

Thanks so much in advance!