Graphics

 View Only
Expand all | Collapse all

Script question

  • 1.  Script question

    Posted 05-26-2022 09:29
    I was using a simple script to add parenthesis and percentage signs to text.  Now it is not working.  Here is the script, errors and text it used to work on.
    png of errorplease help, we are on air and I have to fix this fast.  Thank you in advance for any assistance on this.



    ------------------------------
    Mark Stasiowski
    ------------------------------


  • 2.  RE: Script question

    Posted 05-26-2022 09:46
    Your script looks fine, it's not the best answer I have but perhaps make a new text object, put the same font on it and add the script and see if that fixes it. Delete the broken one.

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



  • 3.  RE: Script question

    Posted 05-26-2022 09:52
    Thank you for the fast response.  I will try this.

    ------------------------------
    Mark Stasiowski
    ------------------------------



  • 4.  RE: Script question

    Posted 05-26-2022 10:50
    Unfortunately this did not work.  I'm still getting the same error.

    ------------------------------
    Mark Stasiowski
    ------------------------------



  • 5.  RE: Script question

    Posted 05-26-2022 10:49
    So I added the same script in a different project and it is working there.  Any thoughts on this?





  • 6.  RE: Script question

    Posted 05-26-2022 10:56
    Sadly I don't recognize this error I wrote this. 

    text = "(" & text & ")" 

    it was compiled right away. 

    I see you have global method errors there as well, what are you using there?

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



  • 7.  RE: Script question

    Posted 05-26-2022 11:01
    I know next to nothing about scripts.  I think I got the script from a forum on here.

    ------------------------------
    Mark Stasiowski
    ------------------------------



  • 8.  RE: Script question

    Posted 05-26-2022 11:02
    copy mine in and see if that solves it.

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



  • 9.  RE: Script question

    Posted 05-26-2022 11:08
    I'm still getting the same error messages

    ------------------------------
    Mark Stasiowski
    ------------------------------



  • 10.  RE: Script question

    Posted 05-26-2022 11:09
    I notice there is a script written in the "Edit Global Methods"  Should there be?

    ------------------------------
    Mark Stasiowski
    ------------------------------



  • 11.  RE: Script question

    Posted 05-26-2022 11:12
    What is the script?

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



  • 12.  RE: Script question

    Posted 05-26-2022 11:17
    OK, I deleted the script that was in the "Edit Global Methods" area and everything seems to be working again.  Hopefully this was the issue.  Thank you for you time and effort on this.

    ------------------------------
    Mark Stasiowski
    ------------------------------



  • 13.  RE: Script question

    Posted 05-26-2022 11:18
    ok I hope you saved the script somewhere because perhaps it was doing something important? :)

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



  • 14.  RE: Script question

    Posted 05-26-2022 11:26
    Yes, I have the script in numerous places.  Thank you.

    ------------------------------
    Mark Stasiowski
    ------------------------------



  • 15.  RE: Script question

    Posted 05-26-2022 11:27
    Nice one.

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