Jump to content
CinnamonMetal

COPS - Current Pixel Position ?

Recommended Posts

How can I get the current pixel position in cops, there isn't a global variable to obtain such information ?

Share this post


Link to post
Share on other sites

The only place that's available is in a VOP generator or filter (fast) or in the Pixel COP (slow). Reevaluating a parm per pixel would be very slow, and isn't supported except by the pixel cop (which is why it's slow).

Share this post


Link to post
Share on other sites
Posted (edited)

I'm using a VOPCOP Generator but I don't know what global variable I need to get the pixels position & where to set it ?

Edited by CinnamonMetal

Share this post


Link to post
Share on other sites

As in case of any compositing application on this planet, pixel position in COPs is fixed. Can you explain what you're trying to do?

Share this post


Link to post
Share on other sites
2 hours ago, CinnamonMetal said:

That stinks, I can't duplicate the pixels if I can't set new positions for the pixels.

You can always create an array, store your data, « duplicate pixels » as you want with that array, and fill the new image (same resolution) with your result, no ?

Share this post


Link to post
Share on other sites
11 hours ago, CinnamonMetal said:

I want to makes duplicates of only the input of a composite vop along an axis (x,y).  

You don't need to set pixels position for that. You want to set the color of a pixels, so that it duplicates the color of other pixels. Example attached.

duplicateCOP.hip

Share this post


Link to post
Share on other sites

@symek I'm assuming that is what @StepbyStepVFX meant in his reply ?

Although how can I change the aspect ratio of the composition view so that the butterflies are not stretched along the X when duplicating along the Y ? Also how can the, in your example duplicate the butterflies instead of a bi-directional axis in Y, either Y up, rather then Y up and down, vertically ?

Share this post


Link to post
Share on other sites

I think you should be able to achieve this with some effort from your side. Just play with vops a little. You can do this!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×