Used for sound object operations.
xshade |
↑ |
shape |
↑ |
sound_track |
play | Play a sound |
stop | Stop sound currently-playing |
is_playing | Whether a sound is playing or not |
range | range on/off |
repetition | Repetition |
sound3d | 3D sound on/off |
value | The volume |
stop
xshade.scene().active_shape().sound_track.stop()
is_playing
Whether a sound is playing or not.
Type :
bool
print xshade.scene().active_shape().is_playing
range
Range on/off.
Type :
bool
print xshade.scene().active_shape().sound_track.range
repetition
Repetition.
Type :
int : 0 is automatic
print xshade.scene().active_shape().sound_track.repetition
sound3d
3D sound on/off.
Type :
bool
print xshade.scene().active_shape().sound_track.sound3d
value
The volume.
Type :
float
print xshade.scene().active_shape().sound_track.value