Search the Community
Showing results for tags 'for'.
-
As it says in the DOC, we can write an expression inside the stop condition field to stop the loop. OK, I used a npoints expression and I referred to the end-block node because it's the only node that accumulates the points and prims I think, but I get an infinite recursion error, Please help me. BEST REGARDS.
-
Hello, I have a for each connected loop, and I created a meta import node. To access the node using the detail function in a wrangle I have to use the back ticks to get the value of the iteration otherwise it just shows 0 without the back ticks. Can some please explain to me why we need to use the detail function in back ticks, for example `detail("../eachP/", "iteration", 1);` in a wrangle node for it to work? Thanks, This is with back ticks This is without back ticks
-
Hello dear fellas, I'm currently studying Anastasia Opara's Procedural Lake Houses (wonderful, but a little bit outdated since it still makes use of for loop subnets) and I'm reporting a "weird behaviour" when using for-loops along with the iteration detail attribute that comes from metadata.. While trying to "update" Anastasia's workflow to houdini 18, I wanted to use the iteration number coming from metadata to blast everything but the correspondent "piece" number, which unexpectedly keeps piece 0 at every iteration and not piece=iteration. I'm using a second block begin fetching in some primitives (I've already tried fetching pieces but it gives an error since block end isn't set to "pieces" but "feedback"). I'm sure it will make more sense from images and my hip file, I've already tried the documentation and a lot of other topics here on odforce but I couldn't figure out what i'm missing. Is there anyone who could find what I'm missing? It would be of great help! Thank you in advance Cheers Frank for_loop_issue.hip
-
as you can see in image below , I want make the i1 (index) incremenal with VOP for loop . how's the workflow , please show me with another simple sample.
-
as you can see the code below: i[]@values = findattribval(0,"point","random_number",3); for(int i = 0 ; i < len(@values) ; i++) { if(@ptnum == @values[i]) { @pscale = ch('specific_pscale'); } else { if(@ptnum != @values[i]) @pscale = ch('rest'); } } the second if inside the else doesn't work properly. Specific_pscale.hip
- 5 replies
-
- findattributevalue
- attribute
- (and 5 more)
-
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 : Thanks for helping ! scatterForEach.hipnc
-
Hey guys, I never got how does a foreach works in vex (at all!), can someone please explain me this? It does the same thing as the For-Each Loop node?
-
Hello, i trying to do something simple but i am knid of new to houdini so i dont know the tricks yet. i have a float number in a for loop that i want to divide by two every iteration. What is the appropriate expression for that?
-
hi Do you know how to keyframe each iteration inside for loop block? Currently, $F in "Iteration" parameter reevaluates everything. Or is there a way to keyframe "next "iteration?
-
Hello houdini people, Im relatively new to the houdini scene coming from traditional modelling background so go easy on me! I came across a webinar from 2016 with Mike Lyndon in which he talks very briefly about applying a secondary frracture to already fractured pieces around their edges. I've attempted this with what very little skills and understanding i have in the software to this point but just can not seem to figure out how to contrain the secondary fracture to just the outer edges of each piece. I figured an approach would be to bevel the pieces and create a new group for this beveled area and apply the secondary fracture to only this group however i am not getting the desired results. I've attached a file with the approach i took and how far i got Any suggestions on achieving the effect would be much appreciated! Cheers guys and girls! Edge Fracturing.hip
- 3 replies
-
- fracture
- fracturing
- (and 4 more)
-
hey guys, I have various primitives and those have different amount of points on them, for example each one primitive might have 10 points and other might have 20 so it varies like this, Now i want to have an attributes which ranges from 0 to 1 for each primitive just like what we get from curveu attribute in resample node. I know how to do this in for each sop but i want to do this in vex, am somehow not able to get that loop working correctly. I store the array using primpoints to get the points on that primitive and iterate that through a for loop but i am not able to get normalised value ranging from 0 - 1. Can please someone help?