Thread: Strobe light
View Single Post
# 3 01-11-2009 , 01:08 AM
Chirone's Avatar
Subscriber
Join Date: Dec 2007
Location: NZ
Posts: 3,125

Re: Strobe light

the psuedocode you'd be looking for is something like

Code:
if ( frame is even ) 
then light.intensity = 1;
else light.intensity = 0;
to tell if the frame is even or not you could use the modulus operator (that's the %)

alternatively you can keyframe the light intensity and make the animation cycle in the graph editor

Originally posted by Jeremy2112
Or maybe an SDK would be a better way to go? I havent even begun how to do it that way, so if anyone has a clue, one way or the other, I would much appreciate it.:bow:

what? doesn't the SDK come with maya? that's why you can use it in Maya...




that's a "Ch" pronounced as a "K"

Computer skills I should have:
Objective C, C#, Java, MEL. Python, C++, XML, JavaScript, XSLT, HTML, SQL, CSS, FXScript, Clips, SOAR, ActionScript, OpenGL, DirectX
Maya, XSI, Photoshop, AfterEffects, Motion, Illustrator, Flash, Swift3D