View Single Post
# 1 15-11-2012 , 06:57 PM
Registered User
Join Date: Nov 2012
Posts: 2

Flickering Flame Light

Hi all,

I've searched the forum and how to create a flickering light has been answered a few times, resulting in this expression that I'm currently using...

pointLightShape1.intensity = rand(0.5,1.5);

Unfortunately, generating a new value every frame looks unnatural (and is epilepsy inducing!). So, I'm after an expression which generates the new intensity value every random number of frames (between 5 and 15, say).

I've come across expressions which will change the value every set number of frames (e.g. every 5 or 10), but this looks unnatural. So is there a way to do this?

I'm fairly new to Maya and struggling to get my head around the MEL stuff!