Jump to content

Foreach question : multiple input


ValentinD

Recommended Posts

Hello everyone ! 

I have some trouble with the foreach loop, and after some search I have not found an answer...

I want to connect points from two scatters and do some operation on each pair of points : connect them to a line, resample, noise and set pscale depending of point number of each loop.

Here is what I have :

A scatter "A" creates two points. For each of thoses points I want to scatter (with scatter "B") another point and connect them together. 

Here is my two issues : 

1- I don't know how to scatter from a sop outside the foreach loop. 

2- I connect my points using the add sop setted to "Polygons > By Pattern > Polygon 0 > 0-$N". Will it work on the second iteration ? 

Here is an image of my network :

 foreach.PNG

 

Thanks for helping ! 

scatterForEach.hipnc

Link to comment
Share on other sites

  • 3 years later...

@Noobini thanks for answering.

What I actually meant, is that the topic question remains unanswered - "Foreach question : multiple input".
I feel like all the the methods are hacks in some ways.

Let's say I've a Geo streams - one lowpoly and one highpoly. Both streams have corresponding 'class' attribute.

I want to use for-loop for each piece (by attrib 'class') from the first and the second input simultaneously.
The only solution to that seams to be using Delete SOP on the second stream with detail("../metadata", value) at an expression.
I feel there should be easier solution.

Edited by deshu
Link to comment
Share on other sites

  • 3 weeks later...

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