SpaceCraft

SpaceCraft

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Random value at random time March 9, 2017, 10:23 a.m.

Well, in that particular case, since I'm dealing with Seed value, just changing the value, no matter how (random or fixed increment) will give me a random scatter result. So the vex code I gave with fixed random value is doing the trick.

The chop solution give a visual result wich is usefull and I think I should look into chops a bit more.

I thought about doing a manual list, but it needed to be a procedural thing.

thanks for all of your answers

Random value at random time March 9, 2017, 8:31 a.m.

Thanks Jsmack, I'm not very confortable with Chops yet, I tried to have a curve like this without success earlier.

It does the trick perfectly as well !

Random value at random time March 8, 2017, 1:51 p.m.

I'm on H15, not H16. the seed doesn't change at all. I get error when opening the file (I wasn't able to see them before). Apparantly it can't recognize some vex stuff (vex_inplace, vex_selectiongroup, and Mat operator)

In any case, someone helped me to do it with a small wrangle. This is the thing to put in an Attribute Wrangle with Detail mode.

float s = ch(“seed”);
int min = int(ch(“min”));
int max = int(ch(“max”));
float r = rand(s);

int period = int(fit01(r, min, max));
f@seed = 0;
while (@Frame > period) {
f@seed += 1;
r = rand((s+.31456) * f@seed);
period += int(fit01(r, min, max));
}

And you put the f@seed attribute to where you want it. It's not a random value (it just add 1) but it works.

Thanks for the help, I'm still looking at your scene to learn other way to do it !