@pos1 to parameter doesn't work?

   338   5   0
User Avatar
Member
8 posts
Joined: Aug. 2023
Offline
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!

Attachments:
Peak.hip (142.3 KB)
Screenshot.png (752.9 KB)

User Avatar
Member
4521 posts
Joined: Feb. 2012
Offline
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)
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
8 posts
Joined: Aug. 2023
Offline
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!

Attachments:
Screenshot2.png (1.1 MB)

User Avatar
Member
4521 posts
Joined: Feb. 2012
Offline
-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.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
8 posts
Joined: Aug. 2023
Offline
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.

Attachments:
Screenshot3.png (1.2 MB)

User Avatar
Member
8 posts
Joined: Aug. 2023
Offline
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()

Attachments:
Screenshot4.png (1.3 MB)
Screenshot5.png (1.3 MB)

  • Quick Links