How to clear a pwindow?

Apr 22, 2013 at 7:45am

How to clear a pwindow?

I did some searching but could not find a solution for this.

I have jit.grab wired to a pwindow. Works great to grab video from my built-in iSight camera. However, when I stop the jit.grab, the pwindow continues to display the last frame captured. How can I clear that pwindow? I tried sending clear to jit.grab, but it had no effect on the pwindow.

I can replicate this behavior in the jit.grab help patcher. Open the component, toggle qmetro, close the component and the pwindow shows the last frame. The clear button does not clear the pwindow.

I must be missing something simple here. Any help?

#67854
Apr 22, 2013 at 8:24am

simply send a black jit.matrix to pwindow

#244032
Apr 22, 2013 at 9:27am

OK – could you describe the “simply” part? (I’m still a newb at this)

Shouldn’t “clear” in jit.grab or jit.matrix (setting all matrix values to zero) have the same effect?

#244033
Apr 22, 2013 at 9:30am
– Pasted Max Patch, click to expand. –
#244034
Apr 22, 2013 at 7:39pm

micron, thank you for the example.

A problem though — when the toggle is “on” the last frame from jit.grab continues to be sent to the pwindow. The frame goes black only when toggled “off”.

On further testing, I guess I’m confused by “clear” in jit.grab only being effective when the component is open, but does nothing after the component is closed.

#244035
Apr 22, 2013 at 8:02pm
– Pasted Max Patch, click to expand. –
#244036
Apr 23, 2013 at 4:46am

Thanks again for the example. This works great.

So the “gate” is used to send metro to jit.qt.grab only when the component is open?

Now to see if this approach will work in my patch.

#244037
Jan 30, 2014 at 8:32am

hi,

i have a similiar problem. the difference is that i have jit.lcd with a paintpoly and linesegment to get coordinates from a kinect. the problem is that the last polygon or line drawn remains even when there is no input information.

thanks for help!

#279562
Jan 30, 2014 at 12:50pm

please post the part of your patch with the problem

#279604
Jan 31, 2014 at 12:51am
– Pasted Max Patch, click to expand. –
#279656
Jan 31, 2014 at 8:00am

I have some problem to open your patch, can you use the “copy compressed” function?

#279686
Jan 31, 2014 at 8:19am

<code>

– Pasted Max Patch, click to expand. –

</code>

#279687
Feb 3, 2014 at 2:08am

is it ok? are you coming cope?

#279927
Feb 3, 2014 at 12:38pm

It is difficult to understand this patch,
but I think that only a gate it’s not enough because your messages “linesegment” and “paintpoly” are banged with the last values.

#279990

You must be logged in to reply to this topic.