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
------------------------------
Original Message:
Sent: 11-11-2024 09:46
From: Greg Gentile
Subject: Accessing Pixel Width of Image Applied to Published Quad in Sequencer
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
------------------------------