Randomize input

   1443   1   1
User Avatar
Member
33 posts
Joined: March 2014
Offline
I'm slowly getting the hang of expressions but I can't figure out how to express randomizing an instance object using an expression (or other simple node)

I have the following geometry I'm calling :
/obj/instance_card_01

I'd like to randomize “instance_card_01” through “instance_card_20”

I had hoped that I could just throw in an expression at the number

Any pointers?

Thanks!
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Hi, you can always plug your objects into a switch sop and use something like

floor(rand(stamp(“../copy1”,“copynum”,0)) * opninputs(“../switch1”) )


of course your copysop will be named copy1 and you have a stamp attribute of copynum with a value of $PT .


Rob
Gone fishing
  • Quick Links