Jump to content
Sign in to follow this  
MENOZ

Bend Foreach

Recommended Posts

hello.

i separated a grid into gropus, using facet, connectivity and partition sop. now i want to bend each group with a twist sop. like if they are cards :)

it is possible?

i see there is a foreach sop, but i don't know how to use it for my problem.

how can i repeat the twist sop for each group?

groups i created with partition sop are not shown in group field of my twist sop. why?

here's the file

thanks!

bend_frames.hipnc

Share this post


Link to post
Share on other sites
try this

yes!

that's exactly what i was looking for!

thank you very much!

Share this post


Link to post
Share on other sites

i added a transform node in the foreach sop.

i'm trying to randomize the Y rotation of each piece of geometry.

but if i use rand(number) it return alwais the same random value, so all pieces are oriented the same way.

is there a ID for each piece to use in expression? just like $PT or $PR.

thanks

Share this post


Link to post
Share on other sites

I dont know how to extract group number properly...

try this solution...

...edit...

new expression: rand(atof(strreplace(stamps("../","FORVALUE","tmp"),"frame_","")))*360

bend_frames.zip

Edited by AndrewVK

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  

×