Friday, 14 November 2014

The lights

The lights were not as bad as I thought. Again I got help with them as the expression editor confused me quite a lot but once I was show how to use it (then swiftly had the example deleted so I could do it myself which I quite liked) I started to understand how it could be used to control lights, I still had no idea how to use it for the body suspension but the lights were simple enough. Have the nurb circle controller as the driver and the light as the driver so when the circle is moved to the left the light turns off and when moved to the right it turns on.

An example of the expression I used:

spotLight1.visibility
=
nurbsCircle1.translateZ

The rear light controller has a set driven key which was interesting if not a bit more fiddly adding drivers and driven things then adding the same drivers for when the lights are off. I feel that many things could go wrong once you get complacent with it.

I also had a master control which controls the whole car and allows it to move and turn. This has a point constraint in the X and Z and a rotate on the Y which was simple to do.

screenshot of all the lights

The master control to move and rotate the whole car

The expression driven switch on the bottom, the set driven key on the top

No comments:

Post a Comment