centroid instead of $CEX ?

   15493   2   3
User Avatar
Member
350 posts
Joined: June 2016
Offline
So apparently you cannot use $CEX, $CEY, CEZ anymore?

I get a
syntax error, invalid syntax
!

But how would you use centroid() on the Pivot parameters of a Transform SOP inside a For Each block?

If I try

centroid(opinputpath("."),0)
I also get an error,

Unable to Evaluate expression. Name ‘centroid’ is not defined

http://www.sidefx.com/docs/houdini/expressions/centroid [www.sidefx.com]

Attachments:
unable_to_evaluate_expression_$CEX,$CEY,$CEZ.jpg (1.7 MB)

User Avatar
Member
253 posts
Joined: July 2006
Offline
I can use $CEX, $CEY, $CEZ with no problems.

You have some typos in your centroid expression, this works for me:
centroid( opinputpath( ".", 0 ), D_X )
centroid( opinputpath( ".", 0 ), D_Y )
centroid( opinputpath( ".", 0 ), D_Z )
Edited by A-OC - Aug. 14, 2017 01:20:16
User Avatar
Member
4 posts
Joined: Oct. 2017
Offline
Hello,

I had similar issue. For those who are looking for solution check this link:
https://www.sidefx.com/forum/topic/43043/?page=1#post-293793 [www.sidefx.com]
Edited by prrrszalony - Sept. 12, 2019 15:28:20
  • Quick Links