Jump to content

random channel for $PR extrusion


memu

Recommended Posts

Hi,

Im just starting off learning Houdini and im stuck with a problem that i have to solve for a project im working on:) Hopefully someone can help

Is it possible to drive polyextrude with a chop picking random channel from a pitch CHOP and applying it to a random primitive?

something like this: $PR*(chop("../music/pitch_OUT/pick random channel from pitch_OUT which is a null")

Thanks! :)

Link to comment
Share on other sites

if your pitch has channels named pitch0-pitch19 for example

then it would be something like

 $PR*(chop("../music/pitch_OUT/pitch" + floor(rand($PR)*19.99 ) ))

it's just out of my head, hopefully typed correctly :)

Yes!! It worked! Thanks alot man!:)

Link to comment
Share on other sites

or you can be more procedural

even if you don't know the number of or exact names of the channels

$PR*(chopct("../music/pitch_OUT", floor(rand($PR)*(chopn("../music/pitch_OUT")-0.01 )) ,$T) )

This is awsome! you saved my life!:) Thanks alot

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...