playMaker

Author Topic: How can I get an audio clip name?  (Read 681 times)

Silicon Power

  • Full Member
  • ***
  • Posts: 186
How can I get an audio clip name?
« on: April 30, 2021, 05:15:34 AM »
I have an audio clip array and need to get name of each clip but there is no action for this! Get name action dose't work to get an audio clip name

Weak Interactive

  • Beta Group
  • Playmaker Newbie
  • *
  • Posts: 33
Re: How can I get an audio clip name?
« Reply #1 on: April 30, 2021, 01:46:15 PM »
Hey,

So... the easiest method I can think of would be to use Array Maker. It has an "Array List Contains Name" action.

You can create an array with every audio clip name, and then cycle through them checking which are contained within the Array List (of audio clips) and getting their indexes.

Not a great solution, but that's probably what I would do.

A "Get Audio Clip Name" action would be ideal here, but I couldn't find one.

Maybe requesting it would be the best option: https://hutonggames.com/playmakerforum/index.php?board=8.0

Good luck.

Silicon Power

  • Full Member
  • ***
  • Posts: 186
Re: How can I get an audio clip name?
« Reply #2 on: April 30, 2021, 06:32:30 PM »
Hey,

So... the easiest method I can think of would be to use Array Maker. It has an "Array List Contains Name" action.

You can create an array with every audio clip name, and then cycle through them checking which are contained within the Array List (of audio clips) and getting their indexes.

Not a great solution, but that's probably what I would do.

A "Get Audio Clip Name" action would be ideal here, but I couldn't find one.

Maybe requesting it would be the best option: https://hutonggames.com/playmakerforum/index.php?board=8.0

Good luck.

Thank you. I hope someone create this Get Audio Clip Name action.