Graphics

 View Only
  • 1.  getting error indentifier expected in script

    Posted 01-01-2026 21:06

    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
    ------------------------------


  • 2.  RE: getting error indentifier expected in script

    Posted 01-02-2026 08:48

    Your variable "text" is not defined. 



    ------------------------------
    Jean Russell
    Freelancer
    ------------------------------