Home | Trees | Index | Help |
|
---|
Module Sound :: Class Sound |
|
Method Summary | |
---|---|
Get this sound's attenuation value. | |
string |
Get the filename of the sound file loaded into this Sound object. |
string |
Get the name of this Sound object. |
Get this sound's pitch value. | |
Get this sound's volume. | |
none |
Packs the sound into the current blend file. |
Play this sound. | |
Set this sound's attenuation. | |
Make this the active sound in the sound buttons window (also redraws). | |
None |
Set the filename of the sound file loaded into this Sound object. |
None |
Set the name of this Sound object. |
Set this sound's pitch. | |
Set this sound's volume. | |
none |
Unpacks the sound to the samples filename. |
Instance Variable Summary | |
---|---|
bool | fakeUser : When set to True, this datablock wont be removed, even if nothing is
using it. |
filename : The filename (path) to the sound file loaded into this Sound | |
string or None | lib : path to the blend file this datablock is stored in (readonly). |
string | name : unique name within each blend file. |
packed : Boolean, True when the sample is packed (readonly). | |
IDGroup |
properties : Returns an IDGroup reference to this datablocks's ID
Properties. |
bool | tag : A temporary tag that to flag data as being used within a loop. |
int | users : The number of users this datablock has. |
Method Details |
---|
getAttenuation()Get this sound's attenuation value. rtype: float |
getFilename()Get the filename of the sound file loaded into this Sound object.
|
getName()Get the name of this Sound object.
|
getPitch()Get this sound's pitch value. rtype: float |
getVolume()Get this sound's volume. rtype: float |
pack()Packs the sound into the current blend file.
|
play()Play this sound. |
setAttenuation(f)Set this sound's attenuation.
|
setCurrent()Make this the active sound in the sound buttons window (also redraws). |
setFilename()Set the filename of the sound file loaded into this Sound object.
|
setName()Set the name of this Sound object.
|
setPitch(f)Set this sound's pitch.
|
setVolume(f)Set this sound's volume.
|
unpack(mode)Unpacks the sound to the samples filename.
|
Instance Variable Details |
---|
fakeUserWhen set to True, this datablock wont be removed, even if nothing is using it. All data has this disabled by default except for Actions.
|
filenameThe filename (path) to the sound file loaded into this Sound |
libpath to the blend file this datablock is stored in (readonly). lib will be None unless you are using external blend files with (File, Append/Link) Note: the path may be relative, to get the full path useBlender.sys.expandpath
|
nameunique name within each blend file. The name is case sensitive and 21 characters maximum length. Note: a blend file may have naming collisions when external
library data is used, be sure to check the value of
|
packedBoolean, True when the sample is packed (readonly). |
propertiesReturns anIDGroup reference to this datablocks's ID
Properties.
|
tagA temporary tag that to flag data as being used within a loop. always set all tags to True or False before using since blender uses this flag for its own internal operations.
|
usersThe number of users this datablock has. (readonly) Zero user datablocks are de-allocated after reloading and saving.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu May 10 20:31:59 2007 | http://epydoc.sf.net |