Shepherding Random Numbers

   1940   4   0
User Avatar
Member
164 posts
Joined: Feb. 2014
Offline
I was reading this lovley post [inconvergent.net] by Anders Hoff about how to control random numbers and I thought I'd try out some of the ideas in Houdini.

Then I realised my imaginiation far outstrips my skills. Even the very first section ('Random Node') I struggle with. I did create a Attribute Vop setup (and Solver version) which did begin to do what I wanted (I will upload when I get to my main machine) but I think there are much more elegant ways to do this. I used a mix node to animate the points but presumably subraction is better.

I would be interested in seeing how to do some of this stuff in VOPs or maybe VEX. And really what the best approach is. When it comes to using memory I guess the solver or particles are best as they build on previous values.

Really any pointers/examples or general thoughts on how to approach basic coding stuff like this would be appreciated.

Thanks,
Simon
http://simonfarussell.com [simonfarussell.com]
User Avatar
Member
2048 posts
Joined: Sept. 2015
Offline
Does this work for you?

Parameters to change values are on wave node in CHOP net.

Two of those variables in order to take effect must have the Python Source Editor Applied and Accept button clicked for new changes.

The magnitude parameter doesn't need this for changes.
Edited by BabaJ - Nov. 17, 2016 19:52:27

Attachments:
Random Amplitude movement.hiplc (56.0 KB)

User Avatar
Member
1750 posts
Joined: May 2006
Online
This might help:

Attachments:
shepherding_v01.hipnc (91.1 KB)
shepherding_01.gif (46.8 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
164 posts
Joined: Feb. 2014
Offline
Ah thanks both. I will have to google the Python Source Editor.
And thanks Matt. This sorta makes sense but I will have to study. It's kind of simple but still melts my head. Much appreciated.
http://simonfarussell.com [simonfarussell.com]
  • Quick Links