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® Softimage® / XSI SDK / Detect when play button is engaged?
  RSS 2.0 ATOM  

Detect when play button is engaged?
Rate this thread
 
30149
 
Permlink of this thread  
avatar
  • saajjj
  • Posted: 03 January 2009 01:28 AM
  • Total Posts: 161
  • Joined: 10 June 2008 12:38 PM

Hello,
Does anyone know of a way to check when the play button is engaged? I know using the Play Control we can get info about the frame rate, current frame etc.

I need to access this information inside a custom ICE node, i.e. when the play button is hit function A fires, when playback stops function B fires.

Any help appreciated :)



Replies: 0
avatar

AFAIK, it’s not possible, and it looks dangerous… for what would you need a such thing?



Replies: 0
avatar
  • saajjj
  • Posted: 03 January 2009 11:03 PM

I need to stop playing an audio file in my custom ICE node.

I’ve got the audio file to start playing at the correct offset using Play Control’s ‘current frame’ and the ICE nodes beginEvaluate callback. But I can’t figure out a good way to stop the audio playback.

I wish ICE nodes had a Notify callback just like the Custom Display Host. That would make life simpler.

I’m open to all ideas :)



Replies: 0
avatar

Do you really need to play your audio file within an ICE tree?
I mean, there is a built-in method for playing sounds while playing the animation.

Go to the Animation Mixer, create a new audio track, import a sound file, and here you are.
You can even show the curves of you audio file within the timeline to help you syncing some actions with the audio. Right click on the timeline, and choose your audio clip from the menu.

Cheers.



Replies: 0
avatar
  • saajjj
  • Posted: 04 January 2009 02:03 AM

I am infact using an audio track in the Animation Mixer for aural feedback, but I’m driving point clouds based on the audio file loaded in a custom ICE node.

Using the animation mixer adds another step from the user point of view. However, I will probably continue to use the Animation mixer as it saves me coding hassle :)



Replies: 0