Jump to content
Sign in to follow this  
flcc

For-Each and MultiplesMorphs

Recommended Posts

Posted (edited)

Hi everyone.

Probably a very simple question, but I'm stuck on it.
I want to morph two groups of shape, each shape morphing respectively between them.
I create a for-each loop for this, but I can't get it to work.
With the set up as it is done the morph does not work. if I disable the input block 2, all the shapes in the group B morph to a unique shape in group A.

I must admit that I am not yet very comfortable with the for-each loops.

hip file attached with abc files if necessary

thanks in advance

F

MultipleMorphsAndForEach.zip

MultipleMorphsAndForEach.JPG

Edited by flcc

Share this post


Link to post
Share on other sites
Posted (edited)

Hi,

take a look at attachment, maybe it helps. At this site and sidefx there are lots of information and examples about for-each loop but it might take some time to understand that.

MultipleMorphsAndForEach_01.hipnc

Edited by vicvvsh
  • Thanks 1

Share this post


Link to post
Share on other sites
Posted (edited)

Thank you very much.
indeed I already look at Jeff wagner video Masterclass Geometry Workflow, and Mestala examples and even here. But managing multiple input is not really explain in depth, or a focused subject, or I don't find the right post.

I don't really understand why for example you must use Fetch input on the two input block and Why for each piece work with one input block but not two.

 

Edited by flcc

Share this post


Link to post
Share on other sites
Posted (edited)

Actually i made a mistake in my first file. It is not necessary use connectivity sop and I must to use Gather Method Feedback Each Iteration instead of Merge Each Iterations. Sorry if I mislead you.

2 hours ago, flcc said:

I don't really understand why for example you must use Fetch input on the two input block and Why for each piece work with one input block but not two.

I attached new file with examples, where i used one and three Block Begin with Fetch Input method. In this case they are just inputs for geometry into for-each loop.

 

MultipleMorphsAndForEach_02.hipnc

Edited by vicvvsh

Share this post


Link to post
Share on other sites
Posted (edited)

I reload hip in my previous post . Example with one Block Begin should work now.

Edited by vicvvsh
  • Thanks 1

Share this post


Link to post
Share on other sites
Posted (edited)

Ok, it's more clear
Thank you for taking the time to do this.

What misled me was the possibility of having the output block in "piece or point" mode, and no input block in this mode.

[Edit]

I just saw the new messages by refreshing the page with the message.

For me the previous one Block Begin Example was working (H17), but the update not. Something as changed with the attribute create node.
Effectively working with H17.5

Edited by flcc

Share this post


Link to post
Share on other sites
Posted (edited)
19 hours ago, flcc said:

What misled me was the possibility of having the output block in "piece or point" mode, and no input block in this mode.

You can do this too just change Gather Method to Merge Each Iterations on Block End. It will work with one Block Begin only.

MultipleMorphsAndForEach_03.hipnc

Edited by vicvvsh
  • Thanks 1

Share this post


Link to post
Share on other sites

Thank you to take time to explain.

I will check this tomorow as I'm in an horrible rush this night :)

Share this post


Link to post
Share on other sites

Ah Here, I finally have time to look at your file quietly, and I now understand what I did wrong at first.

Thank you very much for the help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×