[Sidefx-houdini-list] copy stamp with switch

Andrew D Lyons tstexture at gmail.com
Mon Oct 1 16:46:27 EDT 2007


This should work:

rint(fit01(rand($PT), 0,3))

Cheers

On 01/10/2007, Edmond Earl Smith <ees041000 at utdallas.edu> wrote:
> I have 4 geos that I read in and then feed into a switch. In the select
> input I put stamp("copy1","my_tuft",1)
>
> Down in the copy1 node I stamp the variable my_tuft and make it
> if((rand($PT) * 100)<25,0,if((rand($PT) * 100)<50,1,if((rand($PT) *
> 100)<75,2,3)))
>
> This function is suppose to randomly generate an integer between 0 and
> 3 so that the switch stamps out all 4 pieces of geo.  However,
> something is wrong, it's not throwing any errors and it seems to be
> fine with my grammar but it keeps throwing the 1.  "my_tuft" isn't
> being read like it should.
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>


-- 
=======================================
Andrew D Lyons | Digital Artist | http://www.tstex.com
=======================================



More information about the Sidefx-houdini-list mailing list