Does layer/mask work? » Woodworking » My Forum
My Forum

My Forum



ПоискПоиск   Users   Registration   Entrance
Today: 11.04.2025 - 11:18:28
Pages:  1  

Does layer/mask work?

Advertising

.
AuthorMessage

Tekila

user




Statistics:
Messages: 3
Registration: 27.02.2010

Maybe it was just a typo, but try this: ... base=Lanczos3Resize(512,384) overlay=levels(base,0,1,255,254,255) mask_clip=levels(greyscale(base),10,1,11,255,0) clip=Mask(overlay,mask_clip) clip.layer(overlay,"add",255,0,0,0)

---------------------
Message # 1 15.11.21 - 13:15:02
RE: Does layer/mask work?

alinka.malinka

user




Statistics:
Messages: 342
Registration: 14.06.2012

I have struggled some fights with "layer", too ... Lately, with another fresh attempt, it ran "out-of-the-box", without any problems. I was using the latest AviSynth 2.05+ (19092002, if I remember right). The latest snapshot can always be found here:

---------------------
Message # 2 15.11.21 - 13:19:05
RE: Does layer/mask work?

Enemy

user




Statistics:
Messages: 9
Registration: 13.06.2005

I installed the latest avisynth 2.05+ after first uninstalling the old one with the supplied uninstaller, put new avisynth.dll into system32 folder and ran install.exe - version still gives 2.0.5 22aug2002 - is this right as i know that new/development builds sometimes have the old 'version' infomation in them. But still no luck, still as described as above:confused:

---------------------
Без музыки жизнь была бы заблуждением.Ницше, Сумерки богов
Message # 3 15.11.21 - 13:28:57
RE: Does layer/mask work?

A V I A T O R

user




Statistics:
Messages: 56
Registration: 20.02.2010

Perhaps I'm wrong, but I think you should use RGB32 for all your clips, for transparency to work. Use convertorgb32() instead.

---------------------
Message # 4 15.11.21 - 13:37:28
RE: Does layer/mask work?

patii

user




Statistics:
Messages: 25
Registration: 02 paź 2007, 12:58

Hi again. I did use ConvertToRGB32() -(imediately after telecide in my first post). I just tried - return messageclip(string(isrgb(overlay))) as the last line in my script and it came back 'true' unfortuneatly there is no 'isrgb32()' command. Still very foxed:confused: :confused: :confused:

---------------------
patrycja
Message # 5 15.11.21 - 13:47:04
RE: Does layer/mask work?

Katerinadoc

user




Statistics:
Messages: 1
Registration: 30.07.2011

I've had another (terrifying!) thought. The mask_clip in MASK(clip,mask_clip) must also be in rgb32 format or else you get an error 'souces must be in rgb32'. Now what is the effect of the alpha channel of mask_clip on itself? This is the start of an infinite regress nightmare!!!! I would have thought that the format of mask_clip should be straight rgb24 as it is essentially on or off. Am i being silly now?:)

---------------------
Message # 6 15.11.21 - 13:57:12
RE: Does layer/mask work?

jurek77

user




Statistics:
Messages: 23
Registration: 05 lis 2008, 14:23

:stupid: :stupid: Sorry for wasting everyones time, i've solved my problem!!! converttoyuy2() Telecide(blend=false) ConvertToRGB32() crop(4,4,360,568) base=Lanczos3Resize(512,384) overlay=levels(base,0,1,255,254,255) overlay=resetmask(overlay) mask_clip=levels(greyscale(base),10,1,11,255,0) overlay_clip=Mask(overlay,mask_clip) final=layer(base,overlay_clip,"add",255,0,0,0) return final seems that you can't have mast(clip,maskclip) but must have clip=mast(clip,maskclip) Like Wilbert suggested! Although it works in my original script (can't get my head around expression.function.whatever!!) Phew!

---------------------
Message # 7 15.11.21 - 14:03:47
RE: Does layer/mask work?

transmitter

user




Statistics:
Messages: 8
Registration: 21.09.2009

The main error of the first clip is that: Layer(base_clip, overlay_clip, string "op", int "level", int "x", int "y", int "threshold", bool "use_chroma") overlay is the SECOND argument and this is the clip from which the mask is evaluated. And for understanding don't use the implicit Last variable, at least don't use it with functions with 2 clip args. As you saw: Mask(clip, maskclip) is Last = Mask(clip, maskclip) !!

---------------------
Message # 8 15.11.21 - 14:07:51
RE: Does layer/mask work?
MASTERERIZER Trial Expired : Previous topicNext topic: Final Avi Size smaller than Intermediate files
Pages:  1  

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


Participants