Graphics

 View Only
  • 1.  Scripting frame grabs

    Posted 04-17-2013 19:57
    Hi

    Does anyone know how to script frame grabbing on XPression? I have a case, where I would like to use GPI to grab a frame and assign the grabbed image to an element.

    Thanks

    Niels


  • 2.  RE: Scripting frame grabs

    Posted 04-17-2013 20:46
    Hi Niels,

    I did it in the past. I don't know the code by heart but it involves including the xpTools lib.

    Defining an xpImage object and xpOutputframebuffer.

    Then export the Framebuffer to the Imageobject and then save the Image object as BMP or PNG, JPG. Although in c# you can only save as BMP it seems.

    I can look up the code but only tomorrow.

    Best regards,

    Kenneth

    #XPression


  • 3.  RE: Scripting frame grabs

    Posted 04-18-2013 09:28
    Oops, sorry Niels, I misread your question. I thought you wanted to make a framegrab of the output.

    I was looking into that and I knew I had tested it a few months ago but I couldn't get it to work. It reminds me that I still have to check that.

    But as far as framegrabbing goes, I haven't tried that yet.

    Best regards,

    Kenneth

    #XPression


  • 4.  RE: Scripting frame grabs

    Posted 04-20-2013 10:47
    Hi Kenneth,

    Not to worry.

    Yes, I need to grab from one of the inputs and use that as material. But in spite I have spent quite a while looking through the SDK manual I haven't found a way to access this feature.

    Best

    Niels

    #XPression


  • 5.  RE: Scripting frame grabs

    Posted 04-20-2013 11:11
    Hi Niels,

    I agree, I haven't found that functionality either.

    For now we'll have to do it manually using the Input Grabber.

    Might be a good idea for @bolson to add this functionality to the wishlist of Xpression.

    Good luck,

    Kenneth

    #XPression


  • 6.  RE: Scripting frame grabs

    Posted 04-20-2013 11:29
    Hi Kenneth

    Yes, that might be a nice-to-have.

    Thanks for looking into it.

    Niels

    #XPression