Graphics

 View Only

getting error indentifier expected in script

  • 1.  getting error indentifier expected in script

    Posted 2 hours ago

    Here is script

    dim mat as XpMaterial
    dim shader as XpBaseShader
    dim path as String = engine.ProjectPath & "Video\Teams\TITLECARD\" & text & ".avi"

    if engine.getMaterialByName("TC Home", mat) then
      if mat.getShaderByName("Video", shader) then
        if My.Computer.FileSystem.FileExists(path) then
          shader.setFileName(path)
          shader.reloadFile()
        End if
      End if
    End if



    ------------------------------
    Bill Gooch
    ------------------------------