centroid instead of $CEX ?

   15573   2   3
User Avatar
Member
351 posts
Joined: 6月 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: 7月 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 - 2017年8月14日 01:20:16
User Avatar
Member
4 posts
Joined: 10月 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 - 2019年9月12日 15:28:20
  • Quick Links