Announcement

Collapse
No announcement yet.

Image from XML

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Image from XML

    Hello All,

    I am using the XML reader to feed a weather graphic. I have it all working the way i want except the image. The XML gives a tricode for the weather conditions (ex: ovc (for overcast) I need to feed the image but i cant get it to work. I have attached the VIA file & a few images. Basically when the XML send the tricode it feeds the correct image. I have tried Parameter Tracker but cant seem to get it to work. The images will live on the graphics hub. Could this also be done with scripting?

    Thanks for the help in advance,
    Shotski
    Attached Files

  • #2
    HI
    Add this script to the container before the image container and remove the Control plugins you applied:
    Code:
    sub OnInit()
        this.geometry.RegisterTextChangedCallback
    end sub
    'Dim Path as string = "IMAGE*DESIGNER_LIBRARY/Robert/"
    Dim Path as string = "D:/temp/"
    sub OnGeometryChanged(geom As Geometry)
        this.nextcontainer.CreateTexture(Path & this.geometry.text)
    end sub
    I assume that all icons will be saved at IMAGE*DESIGNER_LIBRARY/Robert/

    HTH
    Adi

    Comment


    • #3
      Thanks Lars,

      Works like a charm!! Thanks again.

      Comment


      • #4
        hey Shotski
        Lars Henriksen is another guy, a good guy but another guy ;-)

        Comment


        • #5
          Sorry adishin, my apologies. :-)

          Comment


          • #6
            i love you too adishin

            Comment

            Working...
            X