Graphics

 View Only
  • 1.  Accessing Pixel Width of Image Applied to Published Quad in Sequencer

    Posted 11-11-2024 12:10

    Hello!

    I'm attempting to automatically adjust the width of a quad to match the width of an image applied with the published material field in sequencer.  To potentially complicate things: my workflow dictates that these images would be coming from Streamline rather than a local folder on the D: drive.

    Does XPression's scripting support the ability to access pixel dimensions of images assigned via input field in the sequencer?  If so, would this also work for images assigned through Streamline?

    Thanks!!

    Greg



    ------------------------------
    Greg Gentile
    Senior Graphics Engineer
    Nexstar
    ------------------------------


  • 2.  RE: Accessing Pixel Width of Image Applied to Published Quad in Sequencer

    Posted 11-11-2024 18:52
      |   view attached

    Hi Greg,

    Here's a project that may help. The quad is set to a dynamic image path from the published text object. Enter in a web URL to an image in the sequencer plus set the width published text object. 400 for 400 pixels wide for example.

    The quad's dimensions are being set by script within the OnPrepare event. The shader objects size will be dynamically set to the fetched image which you can use to set the quads size.

    Not sure what your data looks like from Streamline but if it has web URLS for images then you can script setting the material differently but you could also just set a text var like the example project. You would have to test and be careful of order of events.



    ------------------------------
    Shane Herbert
    ------------------------------

    Attachment(s)

    xpp
    Dynamic_Image_Example.xpp   560 KB 1 version


  • 3.  RE: Accessing Pixel Width of Image Applied to Published Quad in Sequencer

    Posted 11-12-2024 04:15

    You can also put material resize on;

    and then do this



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 4.  RE: Accessing Pixel Width of Image Applied to Published Quad in Sequencer

    Posted 11-12-2024 10:22

    Excellent! Thank you both for sharing these techniques, Shane and Simon!



    ------------------------------
    Greg Gentile
    Senior Graphics Engineer
    Nexstar
    ------------------------------