検索 - User list
Full Version: @pos1 to parameter doesn't work?
Root » Technical Discussion » @pos1 to parameter doesn't work?
jackdon4682
I create a attribution called "pos1", which valued 0.2

Then I wanna use it to drive the Distance of the node peak,
but it doesn't work? why?


Is that I should use the function point() ? or something else? but I dont know how to use...

please help me!

animatrix_
Hi,

Yes you have to use the point expression:
https://www.sidefx.com/docs/houdini/expressions/point.html [www.sidefx.com]

point(-1, 0, "pos1", 0)
jackdon4682
animatrix_
point(-1, 0, "pos1", 0)
Oh, it works~!
But to point itself,it seems the first parameter of point("") should be 0 instead of -1.
It confused me a long time because there aren't the description on how to use 0 to point to itselt in the official website .


I've successfully solve it,
thanks a lot!
animatrix_
-1 is for when you use spare parms so that you don't have to type which node you are referencing. If you just want to use the first input 0 is perfectly valid.

But if you need to reference the current point's attribute for each point for the Peak node, you will have to write your own peak operation in VEX.
jackdon4682
animatrix_
-1 is for when you use spare parms so that you don't have to type which node you are referencing. If you just want to use the first input 0 is perfectly valid.

But if you need to reference the current point's attribute for each point for the Peak node, you will have to write your own peak operation in VEX.


Unfortunately,when I type -1 ,Error occured...
I seem to understand what you said.In generally, number 0 refer to the first input. And maybe it's enough.
jackdon4682
And I'm thinking about solving more complex situation,(as a houdini beginner)
such as pushing small spheres to the surface that is just tangent to the big ball.

the node Peak works well,
and I've found a more simple way which uses Vop to solve it.


thanks a lot for you to help me understand the node and how to use point()
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB