Graphics

 View Only
Expand all | Collapse all

Get error when try to script

  • 1.  Get error when try to script

    Posted 10-29-2022 16:33
    I get an error when I try to comile something in script.

    ------------------------------
    Tue Sandbæk
    Director / TV-Technician
    TV SYD
    ------------------------------


  • 2.  RE: Get error when try to script

    Posted 10-31-2022 05:40
    Hi Tue.
    Can you put your script here?

    ------------------------------
    Roman Yaroshenko
    chief specialist
    RBC-TV
    Moscow Russian Federation
    ------------------------------



  • 3.  RE: Get error when try to script

    Posted 11-01-2022 16:41
    dim logo as xpbaseobject

    scene.getobjectbyname ("Parti Logo 1", logo)

    if text = "1" then
    logo.visible = true

    else
    logo.visible = false

    end if

    ------------------------------
    Tue Sandbæk
    Director / TV-Technician
    TV SYD
    ------------------------------



  • 4.  RE: Get error when try to script

    Posted 11-01-2022 18:17
    Hi Tue. It doesn't look like "text" is defined anywhere.

    ------------------------------
    James Hope
    Technical Director
    3ABN Australia Inc
    Australia
    ------------------------------



  • 5.  RE: Get error when try to script

    Posted 11-02-2022 04:21
    Hi Tue
    Where do you set  the script?

    ------------------------------
    Roman Yaroshenko
    chief specialist
    RBC-TV
    Moscow Russian Federation
    ------------------------------



  • 6.  RE: Get error when try to script

    Posted 11-02-2022 04:25

    I've tried the script on my XPression designer, there I get error when trying to compile, seems like a program bug or failure on the machine.

    When I try on a new XPression studio, it works. 



    ------------------------------
    Tue Sandbæk
    Director / TV-Technician
    TV SYD
    ------------------------------



  • 7.  RE: Get error when try to script

    Posted 11-02-2022 05:18
    Sorry it's my fault.
    I mean what engine do you run the script?  OnSetText, OnOnLine  etc.

    ------------------------------
    Roman Yaroshenko
    chief specialist
    RBC-TV
    Moscow Russian Federation
    ------------------------------



  • 8.  RE: Get error when try to script

    Ross Staff
    Posted 11-02-2022 05:19
    This script will only work on a text object where self.text is already defined as a string called text.

    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 9.  RE: Get error when try to script

    Ross Staff
    Posted 11-02-2022 09:07
    If an identical script compiles on XPression Studio and not Designer the most likely issue is that some XPression software (on the Designer system) was uninstalled at some point. For example, if two editions of XPression (ex Designer and Studio) were both installed on the same machine and one of them was uninstalled.  You can resolve this by re-installing XPression Designer software. Just close XPression Designer and then re-install Designer using the installer.


  • 10.  RE: Get error when try to script

    Posted 11-03-2022 04:05
    This is the error I get, when I try to compile

    This is, with just small snip of code:
    dim kreds as xpBaseObject
    
    self.GetObjectByName ("1", kreds)​

    And it would not compile...

    It works on another XPression machine.

    ------------------------------
    Tue Sandbæk
    Director / TV-Technician
    TV SYD
    ------------------------------



  • 11.  RE: Get error when try to script

    Ross Staff
    Posted 11-03-2022 15:27
    Did you re-install XPression Designer? 
    Do the systems have Windows set to different languages?


  • 12.  RE: Get error when try to script

    Posted 30 days ago
    I just did a new install of XPression Designer and took the new version 10.5
    Now it works!

    ------------------------------
    Tue Sandbæk
    Director / TV-Technician
    TV SYD
    ------------------------------