Display test pattern (Gscript) ▶️ FORUM
FORUM

FORUM



SearchSearch   Users   Registration   Entrance
Today: 15.11.2025 - 13:42:49
Pages:  1  

Display test pattern (Gscript)

AuthorMessage

RT225

Insider




Statistics:
Messages: 57
Registration: 08.18.2001

Could we see picture of script result ?

--------------------------
Rey 1999 M3 Coupe Ellipsoids Euro Clears 17x8.5 MVR Wheels Kumho 712 235/40 Tires ECIS CAI ES Tuning DTM Exhaust UUC "Old School" Clutch Stop ACS Shift Knob/E Brake/Pedals JL Audio CS110R-W0 Sub MTX Thunder 4202 AMP Stuff Sitting in the House Reiger
Message # 1 01.04.23 - 05:29:55
RE: Display test pattern (Gscript)

nicom3

Insider




Statistics:
Messages: 823
Registration: 02.28.2002

Same script but a little less ugly: (EDIT: Removed quotes from V_lines args as were NOT optional args) Code:

--------------------------
Message # 2 01.04.23 - 05:38:07
RE: Display test pattern (Gscript)

NY98M3

Insider




Statistics:
Messages: 7,523
Registration: 07.22.2002

Try this (untested) Code:

--------------------------
98 Fern Green M3/2 - Precision 6870/AR Designs Twin Scroll/RK/E85 2017 Toyota Tundra Crewmaxx - Family Whip 2011 Pierce 75' Quint - Fire Apparatus West Islip FD
Message # 3 01.04.23 - 05:42:01
RE: Display test pattern (Gscript)

mspiegle

Insider




Statistics:
Messages: 407
Registration: 10.11.2003

Yes it's that, sorry ! Same as in Qbasic

--------------------------
Michael Spiegle 2006
Message # 4 01.04.23 - 05:50:44
RE: Display test pattern (Gscript)

RDM3

Insider




Statistics:
Messages: 74
Registration: 03.06.2002

No need to be sorry, wer'e all just beginners. :)

--------------------------
Screw it, just add NOS!!
Message # 5 01.04.23 - 05:56:31
RE: Display test pattern (Gscript)

ehlpitel

Insider




Statistics:
Messages: 2,259
Registration: 11.16.2003

lisztfr9, I am not sure if you are trying GScript or if you are making a test pattern. For a test pattern, I would like to give you a hint. AviSynth video processing is made as a chain of elementary processing steps. Typically, every step takes the frame in memory, allocates additional memory for its output and calculates the output pixels from the input pixels (if we omit the time line for a moment). That means: because you call a function that takes and delivers a clip in a loop, you (maybe inadvertently) build a long chain of processors and thus something that allocates much memory. This script (verified) also produces vertical thin lines at a distance of 10: Code:

--------------------------
Message # 6 01.04.23 - 06:06:19
RE: Display test pattern (Gscript)

davidlamson

Insider




Statistics:
Messages: 182
Registration: 06.13.2002

Yep - or ColorYUV(off_y=6).

--------------------------
Sam Lamson Durham, NC 1993 325is- GC/AD suspension; Stoptech BBK; Competition Cages rollcage; Dinan headers/exhaust 1995 325i- daily driver 1997 Ford E-350 w/Triton V10- tow vehicle Click here to email me
Message # 7 01.04.23 - 06:12:14
RE: Display test pattern (Gscript)

jgardiner

Insider




Statistics:
Messages: 215
Registration: 12.06.2002

@Gavino Yes Gavino, i'm not used to RPN, in particular having the "==" sign as postfix. It's rather a boolean operator as a equal sign. I should ever translate to infix

--------------------------
"Handling wise, I don't know, strong word this but its perfection, it really is. If you're a hooligan, its perfection." -Jeremy Clarkson, TopGear
Message # 8 01.04.23 - 06:17:16
RE: Display test pattern (Gscript)

Cosmos

Insider




Statistics:
Messages: 493
Registration: 08.31.2001

Don't forget that masktools also has a mt_polish() function which converts infix notation to RPN, so you don't need to use RPN if you don't want to. For example, the previous expression could be written as: expr=mt_polish("x % 10 == 0 ? 255 : 0") There is also a function mt_infix() which does the reverse, and can be used to check the meaning of RPN expressions you find in other people's scripts (or the correctness of your own). Subtitle(mt_infix("x 10 % 0 == 255 0 ?")) will show x % 10 == 0 ? 255 : 0

--------------------------
Message # 9 01.04.23 - 06:26:28
RE: Display test pattern (Gscript)

e36m3_858

Insider




Statistics:
Messages: 17
Registration: 08.27.2003

Very useful ! but Don't say anything about mt_infix, or i'm blind :) Ok it's shown as add (Alpha 5)

--------------------------
Message # 10 01.04.23 - 06:31:21
RE: Display test pattern (Gscript)
Pages:  1  

Message
Name
Message

Click on the dot next to the name to address the participant

           
   
The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants

Created with: Tuxxedo FlatForum 4.9.0