[Sidefx-houdini-list] copy stamp with switch

Edward Lam edward at sidefx.com
Mon Oct 1 16:44:19 EDT 2007


I think you meant stamp("../copy1","my_tuft",1) ? Notice the relative 
path in the first argument.

-Edward

Edmond Earl Smith 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




More information about the Sidefx-houdini-list mailing list