Jump to content

Procedurally set bend capture region?


bentway23

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

Link to comment
Share on other sites

  • 3 weeks later...

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.

Link to comment
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 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...