How to copy point attribute to channel (box position)
1918 2 2- Denerog
- 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?
There is a point, attributes too.
I used “opinputpath” to check the correctness of the path
Maybe I don’t notice something elementary?
- toadstorm
- Member
- 385 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:
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.
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]
- Denerog
- Member
- 3 posts
- Joined: April 2020
- Offline
-
- Quick Links