Jump to content
abvfx

Rand Per $id on Guide Process

Recommended Posts

Hey guys, i have a silly problem that i cant solve.

I am using things like frizz, wave, set direction with the groom tools but i cannot use expressions to randomize the effect per primitive (per hair). I figured i should use something like rand($id);

But nothing works in the parameter box.

What can i put in the Fequence parameter that randomises it per hair?

rand.thumb.jpg.74667e949d3f7e9d08161c5e7518b0ac.jpg

 

 

Share this post


Link to post
Share on other sites
Posted (edited)

create a prim attrib like `@frizzampscale = rand(@primnum);` before the frizz and then use it where it says `no override` pick the `guide attribute` in the amplitude dropdown.
And just reading your question again, you can do this in any of the dropdowns btw. 

Edited by Sepu

Share this post


Link to post
Share on other sites
52 minutes ago, abvfx said:

What can i put in the Fequence parameter that randomises it per hair?

doesnt Random Frequency slider work for you?

Share this post


Link to post
Share on other sites
Posted (edited)
48 minutes ago, Sepu said:

create a prim attrib like `@frizzampscale = rand(@primnum);` before the frizz and then use it where it says `no override` pick the `guide attribute` in the amplitude dropdown.
And just reading your question again, you can do this in any of the dropdowns btw. 

Yea i thought of doing something along the same lines. Didnt work for me.

Created it in the parameter and also did it via a wrangle on the prims. Still didnt work. 

Can you show me a screenshot, because if its working for you im doing something wrong. 

rand2.thumb.jpg.940d6bf7f6a02786cae482450756f6bf.jpg

25 minutes ago, anim said:

doesnt Random Frequency slider work for you?

Yea it just generate a random value on all the hairs. You would think it would generate a random frequencey per hair, that would be great. 

This behaviour also occurs with Amplitude too. The random Amp just randomises it but on all the primitives. 

 

If you use a mask then all that does is mask the effect leaving other unchanged.

 

If i could maybe just randomise the seed based on the $id that would be the ideal solution.

Edited by abvfx

Share this post


Link to post
Share on other sites

it works for me in a prim wrangle as you can see I also use the attrib randomize. I use the 2 values distribution so I just get 1 or 0 but you can do whatever you want.

 

 

houdini_9aIdgM2Ywt.png

houdini_5LcNXiUBFQ.png

houdini_aoBEQo0H2u.png

  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)

Thanks @Sepu im gonna try this right now. :)

 

edit:// yea so i tried this. I couldn't put it in the amplitude because that will just increase/decrease the effect, i need a random seed on the frequency or just even a random frequency for the prim. When i put it on the Frequency Guide Attr i get random behaviour.

But when i switch it from two to continuous/discrete and other distribution is i get a much more random effect. So this work. 

 

I was thinking is there a more elegant way to do this. I don't think so. This is exactly what i need.

 

Perfect 

Cheers

Edited by abvfx

Share this post


Link to post
Share on other sites

the Random Frequency and Amplitude parameters seem to work as expected

they are both based on primitive i@id or if doesn't exist then on @primnum

frizz_random_freq_amp.png.bda31a0335996c81ff4b50d7115fffec.png

frizz_random_freq_amp.hip

Share this post


Link to post
Share on other sites
Posted (edited)

Also it might behaviour as expected but that means i wont be able to get a different seed of the same frequency per id right? Random freq will give me a different 

hmm, weird. Every time i turned the Rand Freq up it did it all as one.

 

Thinking about it, I have has this happen before with guide mask random tab where it will treat them all as one. 

 

Cheers for the example Tomas. I'm gonna take a look now. 

Edited by abvfx

Share this post


Link to post
Share on other sites

So one thing ive realised that make things look a little "same-y". 

 

Is the frequency random is fine, but its applied all over. Is there a way to keep the frequency but adjust the seed per primitive? I tried using the @id but it doesnt work.

 Clipboard01.jpg.c846cc9d96592df8e8f98d32f595959e.jpg

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×