Jump to content

other point attribute assignment


superdjo

Recommended Posts

Hello everyone.

I'm trying to write a vex sop in which I feed a single point of a geometry. It parses through the rest of it for a certain number of iterations finding its neigbours and assigning point attributes to them. I was wondering how to assign the values to those other points found during my while or for loop. addattribute puts the attribute of the current point, but the current point is the only point I feed the vex sop with.

I also need to have them in the order I find them so I can add the attribute I need in some sort of linear gradient values.

Any Ideas anyone, maybe some other way to achieve this ?

Thanx

Djo

Link to comment
Share on other sites

The only way i can think of in vex is basically to repeat the calculation you do but for each point regardless of whether it has already been visited, in other words you can't gain any speed by assigning values to the neighbouring points you just have to repeat yourself for each one. You might be able to write values into a point cloud to help but it really depends on the specifics of what you are trying to do.

This is one of those areas where the speed gain of vex get negated by the convolutions of having to code in SIMD.

You might be able to do this in python, but I don't know if they have added support for attributes and geometry connectivity yet.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...