Hi all, i'm trying to get my head around orient attribute, and how to create and use one. And it seems to work nice, until i'm trying to use it with objects that have local translation, i.e. they are not at the center of the world.
If you look at the attached file, teapot_1 has no translation and it is copied where i expected it to be, grid corners/points. But if i use teapot_2, whic have local translation, the result is off as much as the source object is off from the origin.
Is there a way to get around this kind of situation, or is that just another Houdini gotcha…or am i creating the orient attribute totally wrong
Cheers
-k
Q about Copy to points and orient attribute
3372 4 0- KiLa
- Member
- 109 posts
- Joined: June 2008
- Offline
- tamte
- Member
- 8833 posts
- Joined: July 2007
- Online
this has nothing specific to do with orient (also in your example you will not see any difference if you dont create the orient)
Copy SOP will always copy the source reometry onto the destination point relative to its transform to the origin, would you expect different behavior?
Copy SOP will always copy the source reometry onto the destination point relative to its transform to the origin, would you expect different behavior?
Edited by tamte - June 19, 2020 12:26:44
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- KiLa
- Member
- 109 posts
- Joined: June 2008
- Offline
- tamte
- Member
- 8833 posts
- Joined: July 2007
- Online
- BabaJ
- Member
- 2129 posts
- Joined: Sept. 2015
- Offline
If you need to keep your source geometry where it is at because it will be used in your final scene or at some other stage, but you also want to use it as a source for your copy to points,
Just create a new ‘branch’. You can add a transform node after your source geometry and in the transform node click on “Move Centroid to Origin” button and use that for your copy to points. The benefit of that is you can now make adjustments of that new geometry source stream and not affect your original off world center origin geometry. Sometimes even the centroid at world center is not always ideal or desired, e.g. doing a copy from the edge of a circle instead of center, or non asymmetrical geo.
Just create a new ‘branch’. You can add a transform node after your source geometry and in the transform node click on “Move Centroid to Origin” button and use that for your copy to points. The benefit of that is you can now make adjustments of that new geometry source stream and not affect your original off world center origin geometry. Sometimes even the centroid at world center is not always ideal or desired, e.g. doing a copy from the edge of a circle instead of center, or non asymmetrical geo.
Edited by BabaJ - June 19, 2020 17:56:31
-
- Quick Links