SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Register FAQ Members List Calendar Mark Forums Read

New Thread
Thread Tools
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,125
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,501
Thanks: 16
Thanked 645 Times in 567 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.
- Genny
::|| My CG Blog ||::
::|| My Maya FAQ ||::
Gen is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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

1 Month


Month-to-month billing
Unlimited access to all videos
Project files to download
Easy to cancel at anytime

3 months


Billing every 3 months
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months


Billing every 12 months
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.