Jump to content

Transform just one set of points in VOPS


Recommended Posts

Sorry to be asking so many basic questions, but im really trying to understand some of the fundamentals of VOPS.

I've got 3 lines of 100 points each, all with an attribute class on each point to determine what line the points belong to.

In VOPS, id like to transform just one of thoose lines forward a bit - this is just a simple test to help me learn the concepts.

I make a compare and an if block in VOPS to test if the current point has a class value of 1, and transform those points by a bit.

That works great, but the other points that ive not transformed all move to 0,0,0..... I need a way to combine two different streams of pointPosition together...

Is there a general way to do this? If different streams of VOPS calculate pointPosition, how do I combine them back together?

Thanks!

transformJustOneLineInVops.hipnc

Link to comment
Share on other sites

Alright! This is what i`ll do on Sunday morning from now on - post on Odforce! Thanks for all the help - ive stepped through all the example files and have learnt new nodes and some quirks of VOPS.

The two way swtich is probably my favourte method because it really is super general, and useful for combining streams. I suppose I should have guessed that solution because of the similarity to the SOPS switch node.

Also, I didnt understand that if I created a global variables inside a If statement, it would only get evaluated if the statement was true - but if you pass the global P into the If statement, then it only effects the points that evaluate to true - super handy.

Thanks Christian and Kim... And Artem - thats two times today already - thanks so much! I`ll get all this VOPS stuff sorted out in my head eventually!

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...