Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Batman by Jason Edwards
You are here > Home > SimplyMaya Community Forums

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 10-08-2008, 04:05 AM   #1
Registered User
Join Date: Mar 2008
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Flashing floor

I am trying to create a saturday night fever style of dance floor under my character.

I am thinking of simply using the timeline to change the colour every few frames. There are quite a lot of squares and this would take me some time to do.

Is there an easier way of doing this? Is there a way of making each square randomly change colour throughout the animation? Possibly using the same four colours?
Fuzquia is offline   Reply With Quote
Old 10-08-2008, 06:19 AM   #2
Chirone's Avatar
Join Date: Dec 2007
Location: NZ
Posts: 3,124
Thanks: 11
Thanked 147 Times in 143 Posts

you could just use spotlights and give them a certain colour
useful if you want your character to also lightup those colours too
but if not then you can just put the spot lights and the floor into a seperate render layer

just keyframe the light's colour.

as for making it random my guess is you'll have to start writing some scripts in python or MEL
although i don't see the need in making it random if you keyframed the spotlight's colour

actually... keyframing the light's colour every 24/30 frames (assuming you want the light to change each second) would become a real pain in the ass, esp if your animation is really long...
so, writing a script in MEL or python would probably do it quick and fast (i'm guessing... since i have no idea what python and MEL can do in Maya)

oh wait, you can mmb drag keyframes and it copies it to a new position in the time line
although a script would be quick, if you dont know how to script yet then just key four frames, one for each of your four colours and just click and drag with the middle mouse button (if you're3 using a mac then i can't remember what the equivalent is since they only have one button) to the new frame and the keyframe gets copied

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

Last edited by Chirone : 10-08-2008 at 06:28 AM.
Chirone is offline   Reply With Quote
Old 10-08-2008, 12:34 PM   #3
Gen's Avatar
Join Date: Dec 2006
Location: South FL
Posts: 3,448
Thanks: 13
Thanked 634 Times in 557 Posts

I've poked at MEL here and there out of necessity (it was either that or punch my monitor). Of course if you don't use scripting its going to take longer, I should think you can do it manually by setting some stepped keyframes for lets say the first batch of colors then go to the graph editor, select the curve and set it to cycle post infinity so it keeps repeating.
Gen is offline   Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem solving many dynamic objects in a pile? rohiniduggal Dynamics & Special Effects 3 14-01-2011 06:26 PM

Thread Tools

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.