CinnamonMetal Posted October 1, 2019 Share Posted October 1, 2019 How can I get the current pixel position in cops, there isn't a global variable to obtain such information ? Quote Link to comment Share on other sites More sharing options...
malexander Posted October 1, 2019 Share Posted October 1, 2019 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). Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted October 1, 2019 Author Share Posted October 1, 2019 (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 October 1, 2019 by CinnamonMetal Quote Link to comment Share on other sites More sharing options...
symek Posted October 1, 2019 Share Posted October 1, 2019 You can't set it, but you can read it: IX and IY are global pixel's indices, and X and Y are global coordinates in normalized screen space. You really could figure it out yourself reading first page of vops for compositing help: https://www.sidefx.com/docs/houdini/composite/comp_vops.htm Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted October 1, 2019 Author Share Posted October 1, 2019 That stinks, I can't duplicate the pixels if I can't set new positions for the pixels. Quote Link to comment Share on other sites More sharing options...
symek Posted October 1, 2019 Share Posted October 1, 2019 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? Quote Link to comment Share on other sites More sharing options...
StepbyStepVFX Posted October 1, 2019 Share Posted October 1, 2019 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 ? Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted October 1, 2019 Author Share Posted October 1, 2019 @StepbyStepVFX Do you have an example of creating an array of the pixels ? Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted October 1, 2019 Author Share Posted October 1, 2019 I want to makes duplicates of only the input of a composite vop along an axis (x,y). Quote Link to comment Share on other sites More sharing options...
symek Posted October 2, 2019 Share Posted October 2, 2019 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 Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted October 2, 2019 Author Share Posted October 2, 2019 @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 ? Quote Link to comment Share on other sites More sharing options...
symek Posted October 2, 2019 Share Posted October 2, 2019 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.