![]() |
|
#1
|
|||
|
|||
|
audio object string
The following script contains a function which attempts to play
an audio file which is passed as an argument. Before calling the function I want to construct the name of the audio object by concatenating character strings, but it doesn't work. Can you tell me the correct way to do this? Code:
from viz import *
go()
sound1 = add('boing!.wav')
def playit(snd):
snd.play()
num = 1
s = 'sound'+str(num)
playit(s)
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| retrieve Object names | Geoffrey | Vizard | 11 | 12-11-2009 05:26 AM |
| Child Object Rotation | paulgoldberg | Vizard | 5 | 09-05-2006 12:33 PM |
| when collision mode is on, can i "turn it off" for an individual object? | Vdoug | Vizard | 1 | 09-22-2005 01:14 PM |
| rotate to object | jargon | Vizard | 1 | 08-08-2005 01:20 PM |
| Getting the String of a Text3d Object | vjosh | Vizard | 1 | 01-04-2005 12:37 AM |