platypus Posted February 19, 2003 Share Posted February 19, 2003 ok. extremely newbie-ish question here, but here goes... I am starting with a grid, appending a point SOP. I am then attempting to randomize the color of each point on the grid, in order to copy a geometry to the points and have them inherit the random color. any suggestions? am I going about this properly at all? many thanks in advance. Quote Link to comment Share on other sites More sharing options...
anakin78z Posted February 19, 2003 Share Posted February 19, 2003 well, copy stamping would be the way to do it, but if you've never done it, it can be tricky to figure out. I don't know if there's any good tutorials on it out there.... anyway, here's a hipfile, cause that's faster than trying to explain it things to look out for are the param expressions in the point sop under the sphere, and the point expressions in the copy sop. color_stamp.hip.gz Quote Link to comment Share on other sites More sharing options...
Marc Posted February 19, 2003 Share Posted February 19, 2003 Alternatively you could randomise the point colours in the point sop and just click on the "Copy Template Point Attributes" in the point SOP. That will make all the copied spheres inherit all attributes from the template, including colour. For the randomise, (it may be in that hipfile already, but its quick to explain) just make sure you use a different seed for each point ie. rand($PT) in the $CR field, rand($PT*2) in the $CG and rand($PT*4) in the $CB field. The numbers don't matter, as long as the value is different. $PT will change the seed per point. Hope this helps Marc Quote Link to comment Share on other sites More sharing options...
platypus Posted February 19, 2003 Author Share Posted February 19, 2003 thanks a lot Anakin. I had a feeling that it might have something to do with the Copy stamp. unfortunately, I dont seem to be able to extract the file that you uploaded. winzip and winRAR dont seem to like it. arrgh. Quote Link to comment Share on other sites More sharing options...
michael Posted February 19, 2003 Share Posted February 19, 2003 here is a zip version color_stamp.zip Quote Link to comment Share on other sites More sharing options...
anakin78z Posted February 19, 2003 Share Posted February 19, 2003 Alternatively you could randomise the point colours in the point sop and just click on the "Copy Template Point Attributes" in the point SOP. That will make all the copied spheres inherit all attributes from the template, including colour. at some point you realize your thinking is too complicated, and you have to sit back and remember the simple things Thanks Mark! Jens P.S. if you want a quick example of copystamping as well as using point expressions, check out my file anyways Quote Link to comment Share on other sites More sharing options...
platypus Posted February 19, 2003 Author Share Posted February 19, 2003 much and many thanks to all three of you!!! Marc - i have used your pointers and it worked out great. so simple, and i have been beating my head against the monitor for hours on this. heheh. the more familiar I become with Houdini, the more i love its (deceptive) simplicity - maybe straightforward approach is a better way to put it. I guess it is all just a matter of getting to know your way around, the operators. I will check out the hip file next. you guys are tremendous! thanks again. 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.