By -
2 mins

Here is a file that implements simple audio equalizer bars. equalizer.ma (you'll find this at the bottom) The bars are created without expressions through the following construction method: 1. Create a default poly plane with subdivisions = 1,1 2. Move it 0.5 units in Z 3. Move the scale pivot to zero move 0 0 0 pPlane1.scalePivot 4. Connect the subdivisions height to the scaleZ connectAttr polyPlane1.subdivisionsHeight pPlane1.scaleZ; 5. Set the subdivisionsHeight to the maximum number of bars in the display, for example 20 6. Do "Edit mesh: detatch component" 7. Select the mesh faces and do "Edit Mesh: Transform Component" Scale down in y to separate the faces the desired amount. (if desired do an extrude at this point) 8. group the plane (cntr-g) 9. rotate scale and position the group as desired. 10. "Edit: Duplicate Special" with "duplicate input graph" option and number of copies set to the number of extra indicators. 11. Translate the new indicator groups to the desired locations 12. If desired map a ramp texture to the indicators, with "as Projection" enabled. Transform the projection and edit the ramp for the desired color range. 12. Key the "Subdivisions Height" attribute on the various polyPlane nodes to animate the indicators. You could potentially use a plugin to get the sound amplitude from a wave. The following supposedly does this, but I've not tried it and it may not work with your maya cut. AudioWave.mll 4.0l Also I believe there is a sound plugin in Maya Bonus Tools. Note that you could create different sound files with other portions of the sound filtered out. Then use these different prefiltered sound files to drive the different indicators. In this file I simply keyed the bars using a random expression: float $t = time * 3.0; polyPlane1.subdivisionsHeight=(noise( $t )+1.0) * 5; polyPlane2.subdivisionsHeight=(noise( $t + 3.6 )+1.0) * 5; polyPlane3.subdivisionsHeight=(noise( $t + 2.1 )+1.0) * 5; polyPlane4.subdivisionsHeight=(noise( $t + 2.5 )+1.0) * 5; Note that the texture does not update correctly during playback but it will at rendertime.

editPfxOnPolyPath.mel parentToSurface.mel nClothBook.ma dynamicFollow.mel cameraFollow.mel cameraFollowScene.ma lightOcclusion.ma fireball.ma itsSlinky.ma TunShu_BindClothSkin.zip confettiFall.mb simpleConfetti.ma roundConfetti.ma partyStreamers.ma waterTank.ma nClothWater2.ma nClothWater.ma waterPlayground.ma sunsetLeaf.zip oakBigLeaf.mel + oakBigLeaf.mel.icon ribbonTwist.ma bagOfMarbles.ma toonOcean.ma buckySphere.ma thickSlab.ma phoneChord.ma forestRoad.ma bark.iff basicLeafHC.jpg birchBark.gif grassRoad.jpg leafSerrate.tif WhiteBark.tif sideleaf.rgb atmosphere.ma writeHello.ma zipper.ma nClothVertexEditor.mel equalizer.ma
Posted By
Published In
  • Tutorials
To post a comment please login or register
| 8 years ago
Super. When the tutorial is ready it would be nice if you posted a link in the comments here.
| 8 years ago
special thanks for you
| 9 years ago
Thanks Duncan, this post is nearly 2 years old, sorry to dig it back up. Using Audiowave you can indeed animate the EQ with sound volume. ( very easily without any expression ) I'm in the process of doing a vid tutorial for this. hopefully will be able to share it :)
*Save $66 per month on Autodesk's Suggested Retail Price (SRP) when purchasing 1 year term 3ds Max or Maya subscription.