Graphics

 View Only
  • 1.  Script: xpAudioFile play method?

    Posted 02-04-2013 13:47
    Any estimates on when this will be implemented?


  • 2.  RE: Script: xpAudioFile play method?

    Posted 02-04-2013 15:59
    Hi Michael,

    What do you mean by this?

    There is already a Play-method available in xpAudioFile.

    Kenneth

    #XPression


  • 3.  RE: Script: xpAudioFile play method?

    Posted 02-04-2013 17:04
    Hi Kenneth,

    Does it work for you? I can't get it to work and in the help it says that it has not been implemented yet.

    #XPression


  • 4.  RE: Script: xpAudioFile play method?

    Posted 02-04-2013 17:52
    Oh that's what you meant :-)

    I actually haven't used it yet since I'm always playing the Scenedirector as a whole. But I knew it was there.

    I'll give it a try tomorrow to see if it works.

    Best regards,

    Kenneth

    #XPression


  • 5.  RE: Script: xpAudioFile play method?

    Posted 02-05-2013 18:08
    Hi Michael,

    I've been checking it here on my Xpression and indeed it doesn't seem to work.

    If you really need to play back audio which is not associated to any video there is a workaround which I have used in the past already.

    Simply create a new Scene which you can call AudioScene or something.

    Next add all of your audiofiles on the audiotracks of the SceneDirector and leave some space in between them.

    Put the AudioScene online on layer -5 or something.

    Whenever you need to play a piece of audio, just use the playrange of your scenedirector to play starting one frame before the first keyframe of your audio and stopping at one keyframe after the last keyframe of your audio.

    The reason for this one frame before and after is that when you jump to a specific keyframe which already has audio under it, you could hear a pop.

    Not as easy as xpAudioFile.play but it works :-)

    Best regards,

    Kenneth

    #XPression


  • 6.  RE: Script: xpAudioFile play method?

    Posted 02-05-2013 22:00
    Haha, Thanks Kenneth I might have to try that one.

    On an unrelated issue, I am trying to clear a layer when a different layer gets to a certain point in it's script. I have figured out how to clear the layer on a specified framebuffer but I can't figure out how to determine which framebuffer the scene is on.

    So say I have a scene on fb 1 layer 1 and I have another scene on fb 1 layer 2 and when this second scene gets to a point I want it to clear out whatever is on layer 1 on it's framebuffer but I want this to work regardless of the framebuffer it is on. How do I determine a given scenes current framebuffer via script?

    Thanks again Kenneth.

    Take care.

    #XPression


  • 7.  RE: Script: xpAudioFile play method?

    Posted 02-05-2013 22:43
    I'm not sure that I get what you are trying to do.

    So when you reach a certain point in a second scene you want to clear a specific scene or do you want to clear a specific layer?

    If you know the name of the scene, you can use the XpScene.setoffline method to clear the scene regardless of the framebuffer it's on.

    If you are tring to figure out what scene is on a specific layer, you can use the xpOutputFrameBuffer.getSceneOnLayer -method to link a scene on a layer to an XpScene.

    From there on you can check for th name of the Scene or put the scene offline.

    If you want to know on what Framebuffer and Layer a scene is on, you can also use the xpScene.getOnline-method.

    So I'm not sure if you can find your solution in any of the above suggestions?

    Cheers,

    Kenneth

    #XPression


  • 8.  RE: Script: xpAudioFile play method?

    Posted 02-06-2013 13:40
    Thanks again Kenneth. That was exactly what I needed. :)

    #XPression