Notifications
Clear all

[Closed] adding a sound file to scene

Hi.

With MaxScript, is there a way to access the “sound” track in the curve editor? Specifically, what I would like to do is add a .wav file to it, and then change the scene’s duration to that of the sound.

3 Replies

wavsound.filename = "c:\\audio\\somesound.wav"
animationRange = interval wavSound.start wavSound.end

Thanks a lot ZeBoxx2. I had seen that in the MAXscript documentation, but I was confused by the fact that it’s in the page about a VRML97 helper.

yeah, that confused me as well… might be better off as its own topic / part of the “Track View Nodes” topic (where Global Tracks etc. are described as well), considering it’s not actually VRML-specific.