memu Posted January 12, 2011 Share Posted January 12, 2011 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! Quote Link to comment Share on other sites More sharing options...
anim Posted January 12, 2011 Share Posted January 12, 2011 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 Quote Link to comment Share on other sites More sharing options...
anim Posted January 12, 2011 Share Posted January 12, 2011 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) ) Quote Link to comment Share on other sites More sharing options...
memu Posted January 12, 2011 Author Share Posted January 12, 2011 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! Quote Link to comment Share on other sites More sharing options...
memu Posted January 12, 2011 Author Share Posted January 12, 2011 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.