On 01/12/2015 at 07:26, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 17
Platform: Windows ;
Language(s) : C++ ; PYTHON ;
---------
Hello;
dynamically switching the "Play Sound" on and off doesn't seem to work for some reason.
In a script, it's easy enough: I just call
CallCommand(16391);
That works even if I press the button or execute the script or call it from the Customize Commands window while the animation is playing. The sound switches on and off properly.
But I want to do it programmatically: Switch the sound on at frame 30, switch it off at frame 130.
And once I execute this CallCommand from a Python tag, or from the Execute() routine of a C++ tag, it doesn't work. Just does nothing.
Also,
IsCommandChecked(16391)
always returns false - this, too, works fine in the context of a Python command script.
I don't quite see a reason why this command is switched off in the animation context. After all, it's just switching the virtual loudspeaker on or off. Is there any other way to do it? I do not want to play my own sounds through GePlaySnd, I just want to switch the loudspeaker icon during an animation.