Jump to content

Freezing centroid with an expression


Recommended Posts

Hello OdForce, 

 

I managed to evaluate the centroid of a moving geometry with the chf expression function, but i know i'm doing it the wrong way. I have a couple of questions : 

 

- Is there a way to freeze the centroid local variable ? ($CEX, $CEY and $CEZ always return 0 for some reason...)

- How can i freeze the centroid without having to compute it in a different node ? (feel free to take a look at my hip file)

 

hou.Parm might be useful here, but i'm not sure how to use it...

 

Thanks in advance ! 

freeze_centroid_001.hipnc

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