Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Python / FBAudioClip incostencies
  RSS 2.0 ATOM  

FBAudioClip incostencies
Rate this thread
 
19421
 
Permlink of this thread  
avatar
  • gabester
  • Posted: 20 November 2008 06:21 PM
  • Total Posts: 30
  • Joined: 02 September 2008 02:02 PM

Hey all, I’m having trouble with the FBAudioClip class

I’d like to first of all import a sound. That’s fine, I call:

audiofile FBAudioClip("C:/Temp/Sound1.wav")

Then I’d like to set it’s name to something else

audiofile.Name "Helloclip.wav"

This doesn’t work. The name stays the same.
Then I’d like to set the inpoint to a value like 10

audiofile.InPoint 10

That doesn’t work either. Is it something buggy with the class?



Replies: 1
/img/forum/dark/default_avatar.png

audiofile=FBAudioClip("F:\D23\Audio\Scratch\OTTO_PGR_002.aif")
audiofile.InPoint = FBTime(0,0,0,0)

Author: amayala

Replied: 18 July 2009 04:07 AM  
avatar
  • gabester
  • Posted: 20 November 2008 10:40 PM

Hey, sorry fellas, one last thing. I can’t seem to delete a list of sound events through python.

I execute:

lScene = FBSystem().Scene
Audio = lScene.AudioClips
lList = []
for a in Audio:
lList.append(a)
map( FBComponent.FBDelete, lList )
del(lList)

The nodes get deleted from the Navigator, but the sound continues to play.



Replies: 0
avatar

Hi, I had the same problem setting the in-point. This might help.

http://area.autodesk.com/for...operty-for-an-audio-clip/

Brian



MotionBuilder 7.5 thru ...
3dsMax 2.5 thru ...

Replies: 0