THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/08/2011 at 15:37, xxxxxxxx wrote:
Hi,
Is it possible to adjust the properties of special tracks? Specifically: the filename parameter of the Sound track?
Here's what I'm doing now:
#Add a Sound track
sound_track = c4d.CTrack(sound_obj, c4d.DescID(c4d.DescLevel(c4d.CTsound, c4d.CTsound, 0)))
sound_obj.InsertTrackSorted(sound_track)
#Set the Sound property to the wav file NOT WORKING
sound_track[c4d.CID_SOUND_NAME] = "Test.wav"
if debug:
print "sound_track[c4d.CID_SOUND_NAME] = ", sound_track[c4d.CID_SOUND_NAME]
#Tell C4D something has changed
c4d.EventAdd()
Unfortunately, it's not working. I get this error:
"IndexError: Invalid key type."
Any ideas would be greatly appreciated.
Thanks,
Donovan