MENOZ Posted March 10, 2008 Share Posted March 10, 2008 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 Quote Link to comment Share on other sites More sharing options...
AndrewVK Posted March 10, 2008 Share Posted March 10, 2008 try this bend_frames.zip Quote Link to comment Share on other sites More sharing options...
MENOZ Posted March 10, 2008 Author Share Posted March 10, 2008 try this yes! that's exactly what i was looking for! thank you very much! Quote Link to comment Share on other sites More sharing options...
MENOZ Posted March 11, 2008 Author Share Posted March 11, 2008 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 Quote Link to comment Share on other sites More sharing options...
AndrewVK Posted March 11, 2008 Share Posted March 11, 2008 (edited) 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 March 11, 2008 by AndrewVK Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.