Graphics

 View Only
  • 1.  Using the API to change a published image (Sequence)

    Posted 03-02-2017 13:47
    Hello,

    Using the API I have loaded a scene (with several published items)
    I have stored the scene in my sequence.

    The first published item is an image (Material)
    Now I want to update the image.

    I load the first Published Object in a xpPublishedObject.
    Then I can set the Material with SetPropertyMaterial

    I have to pass an existing Xpression Material.

    If I do that (and change the image inside it), other places where that material is used will change too, I guess.
    So maybe I will have to create a new Material for the occasion? If I do that, I will end up with many orphan materials.

    Is there a better way?

    Regards,

    Barend


  • 2.  RE: Using the API to change a published image (Sequence)

    Posted 03-02-2017 14:12
    You should be able to call SetPropertyString and pass a filename to an image on disk.
    #XPression