Greetings all!
I need to align an object to a point (without using Copy SOPs).
I found a short tutorial on this that uses a VOP SOP with "Align" and "Extract XForm" nodes. This works exactly as I'd like it to, but I need to rebuild it as it was created in Houdini NC, and is also a few years old so it appears some of the nodes have been deprecated.
I did my rebuild approximating the original file with non-deprecated nodes, however, I'm not getting the normal-to-rotation alignment I need and I'm at a loss for where to look to resolve this. Attached are screenshots, one derived from original file (Non-commercial), the other is my re-build (Indie). The results in the Geometry Spreadsheet tell the story.
Respective .hipnc and .hiplc files are also attached.
Preemptive thank to any responders!
NpF
Aligning Rotation Values to Normals Values
1316 2 1-
- pfistar
- Member
- 11 posts
- Joined: June 2017
- Offline
-
- jsmack
- Member
- 8177 posts
- Joined: Sept. 2011
- Offline
I can't really tell what you're doing with an attribute 'rot', but there is a problem with the attributevop version.
Using 'add attribute' with a point-varying value does not do what you expect. That node only creates the attribute, it doesn't set the value to anything, aside from the default value , which is the same for all points. That's why the first point's value is the same on all of the points.
Use a 'bind' node to set an attribute value for the current point. There's very little reason to use an add attribute node unless the name/type of attribute needs to be determined procedurally.
Using 'add attribute' with a point-varying value does not do what you expect. That node only creates the attribute, it doesn't set the value to anything, aside from the default value , which is the same for all points. That's why the first point's value is the same on all of the points.
Use a 'bind' node to set an attribute value for the current point. There's very little reason to use an add attribute node unless the name/type of attribute needs to be determined procedurally.
-
- pfistar
- Member
- 11 posts
- Joined: June 2017
- Offline
@jsmack
I appreciate the response! Replacing the Add Attribute VOP with a Bind Export seems to have done the trick!
Regarding the 'rot' attribute, I was using this to drive rotation values which I'm referencing in a few Transform SOPs using expressions.
As I'd mentioned, I'd borrowed that VOP setup from someone else's old file. It's a bit of moot point, but I do wonder why SideFX changed the functionality of the 'Add Attribute' VOP.
In any event, thanks again!
I appreciate the response! Replacing the Add Attribute VOP with a Bind Export seems to have done the trick!
Regarding the 'rot' attribute, I was using this to drive rotation values which I'm referencing in a few Transform SOPs using expressions.
As I'd mentioned, I'd borrowed that VOP setup from someone else's old file. It's a bit of moot point, but I do wonder why SideFX changed the functionality of the 'Add Attribute' VOP.
In any event, thanks again!
-
- Quick Links

