cop2 in sops: can't get detail value correctly in SOPs level

   880   4   1
User Avatar
Member
1099 posts
Joined: 4月 2017
Offline
Hi!

I have a Detail Wrangle with an integer resolution value that changes at each frame:
560, 2432, 4096, 4096, 2064, 112, 112, 4096, etc.



That value is accessed inside a COP2 Network with a detail function. The problem is I'm getting the wrong value. No matter the frame, I always have "2432". It's like it doesn't refresh when I get to different frames in the timeline. Is it a bug or am I missing something... ?

-Olivier
Edited by olivierth - 2023年7月3日 12:52:17

Attachments:
Houdini_COP2_Detail_Function_01.JPG (46.4 KB)
Houdini_COP2_Detail_Function_02_fix.JPG (60.9 KB)

User Avatar
Member
1099 posts
Joined: 4月 2017
Offline
Ah!

The trick was to expose the "Override Size" parameter one level higher. Once I add that parameter in my COP2 Network named "Bake_Result"(from edit parameter interface), all works fine!

-Olivier

EDIT: My bad! My "Solution" does not work at all. When I look at the value in my exposed "Override Size" (on the COP2 node), it looks good. When I dive inside that COP2 Network to see the result inside, I still have the same problem.
Edited by olivierth - 2023年7月3日 12:52:03

Attachments:
Houdini_COP2_Detail_Function_03.JPG (104.5 KB)

User Avatar
Member
9111 posts
Joined: 7月 2007
Offline
COPs often treat the input stream as a sequence of frames at constant resolution and therefore size parameters can't be time dependent

however you should be able to use TOPs to generate independent workitems that execute your COPnet with desired size overrides
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
1099 posts
Joined: 4月 2017
Offline
So, My method ended up not working at all...

I'll have a look at your TOPs solution but I know absolutely nothing about TOPs.
User Avatar
Member
9111 posts
Joined: 7月 2007
Offline
https://www.sidefx.com/forum/topic/89794/#post-390066 [www.sidefx.com]
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links