simple cop transform

   1768   2   0
User Avatar
Member
79 posts
Joined: April 2011
Offline
Hey folks, wondering if anyone knows how to do a simple transform in cops. I just want to rotate the image 90 degrees. Seems to be clipped by the frame of the first image when I really want to rotate the frame as well. Love Houdini - hate cops.

Attachments:
dress-container-bg.png (87.4 KB)
cop_transform.hipnc (33.5 KB)

User Avatar
Member
483 posts
Joined: Dec. 2006
Offline
Something like this (full scene now)
Use the switch in the cop to compare the results.

Use somthing like
res(“../../../img/comp1/out”, D_XRES) / 100

res(“../../../img/comp1/out”, D_YRES) / 100

in the grid or in your geo, to match the image size in a dynamic way.

Attachments:
test.zip (125.0 KB)

English is not my native language, sorry in advance for any misunderstanding :-)
User Avatar
Staff
5161 posts
Joined: July 2005
Offline
You can use the Flip COP, with the “Flop 90 degrees” parameter enabled. This will not only rotate 90', but swap the width & height of the image as well.

Note that even if pixels are rotated out of frame, they're still there for subsequent COPs to use.
  • Quick Links