Graphics

 View Only
  • 1.  getting image assigned in sequencer

    Posted 07-24-2015 22:03
    how can I get the image (filename. path) for a picture applied in the sequencer (material face)

    so that I can apply it to another material when the scene goes online?


  • 2.  RE: getting image assigned in sequencer

    Posted 07-25-2015 07:42
    Hi Steve,

    Thank you but I guess I wasn't clear enough - I need to write some vb code to get the the filename of the image assigned by the operator in the sequencer and apply that to other materials in the scene when the scene goes online.

    #XPression


  • 3.  RE: getting image assigned in sequencer

    Posted 07-25-2015 08:05
    Try this !

    OnOnline :

    Dim MyBaseObject As xpBaseObject = Nothing

    Dim MyMat As xpMaterial = Nothing

    Dim MyShader As xpBaseShader = Nothing

    Dim CurrentShader As String = ""

    Self.GetObjectByName("ObjectWithGoodMat", MyBaseObject)

    MyBaseObject.GetMaterial(0, MyMat)

    MyMat.GetShader(0, MyShader)

    CurrentShader = MyShader.FileName

    Engine.GetMaterialByName("MyMatToAffect", MyMat)

    MyMat.GetShader(0, MyShader)

    MyShader.SetFileName(CurrentShader)


    #XPression