hmihalis1 6 Posted December 11, 2020 Hi all, I need to generate an integer attribute on points that switches between 0 and 1 across a frame range like this: so the length of the spans is driven by a min/max, and their distribution is then randomly scattered across the frame range. This also need to be different for each new point as they are born . Could anyone help me break down what I need to do this in vex/vops? I was told to look into arrays and while loops which is well beyond my current VEX level. Many thanks, H Share this post Link to post Share on other sites
Librarian 576 Posted December 11, 2020 Use Chops https://www.sidefx.com/docs/houdini/vex/contexts/chop.html https://www.tokeru.com/cgwiki/index.php?title=HoudiniChops Share this post Link to post Share on other sites
hmihalis1 6 Posted December 11, 2020 (edited) Thanks @Librarian . Are you suggesting generating a noise and clamping it? I had thought of chops as a solution but is there a way to randomize that per point, and also to define the precise duration of the periods? i know i could use a noise but im trying to find a way to avoid having to tweak values to get the kind of variation im after and instead be able to just enter the values. Looking at the tokeru article now and it seems like theres some stuff that covers per point offsets specifically which is cool - i'll see what I can figure out with the spans Edited December 11, 2020 by hmihalis1 Share this post Link to post Share on other sites
Librarian 576 Posted December 11, 2020 Something similar I also Thought, regarding Waves and Math Using Limit With Quantize ...HM Share this post Link to post Share on other sites
hmihalis1 6 Posted December 11, 2020 I think i'd have to work through these tutorials and get a better grasp on chops first - i managed to bring in the points and generate a channel per id, so thats a start Share this post Link to post Share on other sites
Librarian 576 Posted December 11, 2020 @hmihalis1 Here I have Fun Like Always, You can make Some Really Nice Patterns if you Spend Some Time Share this post Link to post Share on other sites
hmihalis1 6 Posted December 11, 2020 wow @Librarian this looks super cool thanks! Share this post Link to post Share on other sites