bentway23 Posted February 5, 2021 Share Posted February 5, 2021 Would there be a way to procedurally set the capture region for a bend deformer, for instance if you're using it in a for loop for the same object but with different sizes/rotations? I guess the main question would be figuring out its angle, as bounding box and centroid expressions could do most of the placing and sizing (except if the object was rotated the bounding box size wouldn't be accurate). Quote Link to comment Share on other sites More sharing options...
anim Posted February 6, 2021 Share Posted February 6, 2021 you can use Bounds SOP and check Oriented Bounding Box and Transform Attribute that will give you detail matrix attribute 'xform' which will contain all the data you need Quote Link to comment Share on other sites More sharing options...
takenotes Posted February 24, 2021 Share Posted February 24, 2021 The easiest way to do it is set a loop to iterate over pieces and then inside the loop write the relevant attributes (bounds, direction, bend angle) to detail attributes. Then you can reference them inside the bend node with the detail(input, attrib, component) expression. Then delete the attributes at the end of the iteration. Quote Link to comment Share on other sites More sharing options...
takenotes Posted February 24, 2021 Share Posted February 24, 2021 50 minutes ago, takenotes said: The easiest way to do it is set a loop to iterate over pieces and then inside the loop write the relevant attributes (bounds, direction, bend angle) to detail attributes. Then you can reference them inside the bend node with the detail(input, attrib, component) expression. Then delete the attributes at the end of the iteration. Sorry, I didn’t see it was already solved 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.