How to copy point attribute to channel (box position)

   1615   2   2
User Avatar
Member
3 posts
Joined: April 2020
Offline
I apologize in advance for my English. I have a flying points in one geo. I want to put the camera on one of them. I used “point”, but it doesn't work. I started with box. I used them separately. Combined in vex only to show.
There is a point, attributes too.
I used “opinputpath” to check the correctness of the path


Maybe I don’t notice something elementary?

Attachments:
attr P.PNG (43.7 KB)
1.PNG (38.1 KB)
2.PNG (52.8 KB)
3.PNG (47.2 KB)
point.PNG (139.6 KB)

User Avatar
Member
359 posts
Joined: April 2017
Offline
You're confusing your HScript expression syntax with VEX.

At the Object level where Cameras live, you'll have to use HScript to fetch information from a single point. The syntax looks like this:

point("/path/to/SOP", 164, "P", 0)

where 164 is the point number you're fetching attributes from, and 0 is the index of the attribute you're trying to fetch (0 corresponds to the X-coordinate of a vector attribute). For Y and Z, your expression would look the same, except the last term would be 1 and 2, respectively.
MOPs (Motion Operators for Houdini): http://www.motionoperators.com [www.motionoperators.com]
User Avatar
Member
3 posts
Joined: April 2020
Offline
Thank you so much! It really works
  • Quick Links