Help me fix this Compile Block error (violation of strict nesting...)

   3733   5   1
User Avatar
Member
443 posts
Joined: April 2018
Offline
I likely need a Block Begin set to Fetch Input somewhere, but I can't figure it out where.


Edited by eikonoklastes - April 8, 2021 01:12:29

Attachments:
unknown.png (125.0 KB)
unknown2.png (38.5 KB)

User Avatar
Member
443 posts
Joined: April 2018
Offline
Adding the scene file
Image Not Found
Edited by eikonoklastes - April 8, 2021 01:42:31

Attachments:
Reeds_test.hiplc (1.1 MB)

User Avatar
Member
9239 posts
Joined: July 2007
Offline
your spare input link references are all over the place


1. "generate_line_points" has spare input connection outside of its internal for block, you need to insert Foreach Block it inbetween that link

2. "bend1" has spare input connection to "foreach_begin2" (not even visible in your screenshot), but it's not within it's for block at all as it's connected below it's correspondng block end, so that one probably doesn't even work correctly without compile
Edited by tamte - April 8, 2021 11:15:30
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
443 posts
Joined: April 2018
Offline
Hi Tomas,

foreach_begin2 is visible in the screenshot - it's the nested loop that is in the upper left of the image.

I want to add a Block Begin to the generate_line_points section, but nothing I try here works. It's the reason I changed it from a Line SOP to a Wrangle, so that I could get an input that I can hook up a Block Begin, but again, it doesn't seem to work.

For the Bend, I deleted both spare inputs, and removed all expressions from it but it doesn't fix the issue.

The Compile Block works if I disable the nested loop, so I just need to figure out how to encapsulate that one correctly, and I've tried a large variety of combinations, but nothing seems to fix it. I've even removed all spare inputs and expressions from the nodes in the nested block, but still can't get it to work.
User Avatar
Member
9239 posts
Joined: July 2007
Offline
eikonoklastes
foreach_begin2 is visible in the screenshot - it's the nested loop that is in the upper left of the image.
I meant that that particular purple wire that goes from foreach_begin2 to bend1 is not visible in the screenshot, its visible only at certain zoom levels unfortunately

here is modified file with both changes that I mentioned

on top of that seem like Distance Along geometry nodes are not compileable due to direct geometry reference inside so I bypassed those and replaced with unlocked fixed versions
Edited by tamte - April 9, 2021 03:33:28

Attachments:
Reeds_test_compiled.hiplc (1.1 MB)

Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
443 posts
Joined: April 2018
Offline
Thank you very much. I don't actually need that nested loop because I can easily get the result I want (for that section) without using one, but I'm trying to figure out compile blocks more, so was trying to force one over there. Your scene file has been very helpful, and yes Distance Along Geometry doesn't compile because of its named references, I submitted an RFE for it to be updated.

Cheers!
Edited by eikonoklastes - April 9, 2021 06:53:42
  • Quick Links