Greetings All,
I'm working through some image based templates that would allow the population of Slideshows/Carousels to happen by pasting a folder path in a published template link. So far, working great - but I'd like a solution that wasn't dependent on a common file naming convention....so distributing textures across quads by index is what I'm going for (through a OnSetText, text is child of each Quad):
' establish a text object for the file path
dim path as xpTextObject
Scene.GetObjectByName("Source Folder", path)
dim imagePath as String
imagePath = path.text
' define all possible file extensions
dim fileName1, filename2, filename3 as String
fileName1 = "1" & ".jpg"
fileName2 = "1" & ".jpeg"
fileName3 = "1" & ".png"
' map the quad
dim Quad as xpBaseObject
Self.GetParent(Quad)
Quad.SetVolatileTextureFile(0, imagePath & "\" + fileName1)
Quad.SetVolatileTextureFile(0, imagePath & "\" + fileName2)
Quad.SetVolatileTextureFile(0, imagePath & "\" + fileName3)
Is such a thing even possible? I'm working with version 9, so trying to hack my way to a Dynamic solution with scripting. I haven't been able to find any kind of wildcard convention in the SDK, so kind of stuck on how to proceed. Any guidance/suggestions would be greatly appreciated!
------------------------------
Chris Jordan
Graphic Artist in Charge
NBCUniversal
------------------------------