Jump to content

compiled block trouble


Recommended Posts

hey,

I am varying some random instances through the use of a switch node, copy to points, and a foreach loop. Once you start instancing large amounts, the foreach loop starts to get really slow. I can speed this process up by using a compile block. The problem is it stops varying the instances from my switch node and only scatters one of the objects. If you toggle on/off enable compiling, you can see it switch between varying and not varying. I know the problem has to do with my point expression in the switch sop. I tried adding a spare parameter like the documentation suggested, but I must be doing something wrong. Any ideas?

thanks

compile.png

testc.hip

Edited by ejr32123
Link to comment
Share on other sites

On 12/21/2018 at 6:25 PM, ejr32123 said:

Thanks, I thought there might be another way other than adding all those begin block/compile nodes. I guess that is the way to go!

a more flexible way would be to pack every individual shape piece beforehand, pass as a single geo and then just isolate piece you want per point within foreach

this will give you flexibility of having any number of shapes without having to modify your network

testc_3.hip

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...