Graphics

 View Only
  • 1.  Load image into quad from file

    Posted 04-26-2018 20:44
    In vbscript, how does one load an image from file into an xpQuadObject?


  • 2.  RE: Load image into quad from file

    Posted 04-27-2018 15:11
    it'll be something like this.

    Dim Quad as xpQuadObject

    Quad.SetVolatileTextureFile = "imagefilepath"
    #XPression


  • 3.  RE: Load image into quad from file

    Posted 04-30-2018 01:20
    dim quad as xpQuadObject
    Self.GetObjectByName("Quad1", quad)
    quad.SetVolatileTextureFile(0, "c:\blah.jpg")

    #XPression


  • 4.  RE: Load image into quad from file

    Posted 05-07-2018 20:52
    This is not working for me. The quad does not update.
    #XPression


  • 5.  RE: Load image into quad from file

    Posted 05-07-2018 20:55
    What script event have you put the script into? If you have it in OnSetText you need to change it to Scene.GetObjectByName.
    If you copy and paste your file path into Windows explorer do you get the image?
    #XPression


  • 6.  RE: Load image into quad from file

    Posted 05-07-2018 21:11
    Thanks! Those suggestions helped. Got it working.
    #XPression