LayerAsAudio not working?

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
bibbinator
Posts: 17
Joined: Wed Mar 10, 2010 1:37 pm

LayerAsAudio not working?

Post by bibbinator »

Hi,
This is my first post. Hopefully I will have followed all the rules :-)

I'm trying to use LayerAsAudio in version 6.0 and it always returns nil even though the IsAudioType() is returning true.

I searched the forums and found only one post with this mentioned here.

Is this expected? I'm trying to retrieve the audio file used using AudioFile() on the layer, but without a valid layer I can't do it.

Thanks,
Brett
Rudiger
Posts: 786
Joined: Sun Dec 18, 2005 2:25 am

Post by Rudiger »

Yeah, this turned out to be a bug in version 6.0, but Mike fixed it for version 6.1. Just download the latest version (6.2 has just been released!) and it should work the way it should.
bibbinator
Posts: 17
Joined: Wed Mar 10, 2010 1:37 pm

Post by bibbinator »

Doh! Updates. Mmmm.... Thanks!
Post Reply