Announcement

Collapse
No announcement yet.

How to set a single random value opacity to a material ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to set a single random value opacity to a material ?

    I need a single random value for a bunch of materials and I thought the easiest way would be to use simple script. I've added a float script to the opacity slot and added: (random 50 100) to get opacity values between 50 and 100. This creates a noise pattern for the opacity over time rather than a single static value. Anyone know how to do this ?
    Regards

    Steve

    My Portfolio

  • #2
    Code:
    seed 12345
    (random 50 100)
    Adding a seed should fix the random value. The seed will determine the random number. If you are going to do this at a certain point you might as well just type a random number though? I may have missed the point of the question.

    Comment


    • #3
      Good to know. Thanks. You are right however...I was looking at a more complicated method than was required
      Regards

      Steve

      My Portfolio

      Comment

      Working...
      X