Jump to content

Center Of Mass Otl


asnowcappedromance

Recommended Posts

hey guys,

every now in then I write some python code to stay in practice, here's one of my really useful Python Ops, I use it all the time.

The Otl calculates the center of mass of incoming geometry, you can input primitve groups or seperate the COM creation by object groups.

Let me know if you can break the tool, feedback's always appreciated,

cheers,

Manu

centerOfMass_pyOp.otl

Link to comment
Share on other sites

hey guys,

every now in then I write some python code to stay in practice, here's one of my really useful Python Ops, I use it all the time.

The Otl calculates the center of mass of incoming geometry, you can input primitve groups or seperate the COM creation by object groups.

Let me know if you can break the tool, feedback's always appreciated,

With polygonal geometry, looks like it creates a COM point for each polygon (primitive)?

Not a fancy OTL, but another way to get COM, via volume & vopsop,

Link to comment
Share on other sites

With polygonal geometry, looks like it creates a COM point for each polygon (primitive)?

Not a fancy OTL, but another way to get COM, via volume & vopsop,

You can deactivate the "per primitive" tab, that's the culprit who creates a point for each polygon :)

Thanks for sharing that with me, a rather interesting approach to do it, but I'm always eager to learn VOPs :) In the end the result is the same (more or less),

no matter if you average the point position or each voxels position.

One way to improve my tool would be to allow the asterisk symbol in my group mask, I still have to implement that, right now the group mask only looks if the incoming group names

contain the string that you input in that field.

cheers!

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