Jump to content
Sign in to follow this  
bentway23

Procedurally set bend capture region?

Recommended Posts

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).

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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 

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  

×