Transformed asset to point instancer
1416 4 3-
- julca
- Member
- 224 posts
- Joined: Oct. 2015
- Offline
Hello,
I want to convert duplicated and transformed asset into a point instancer for further operations. I can get all positions but I don't know how to get back their orientations.
Cf. screenshot, on the left what I do manually and on the right when I try to get back in instancer, from source node "out_for_transform", the transformations.
Do you know how to do ?
(cf. simple scene file)
Thank you.
I want to convert duplicated and transformed asset into a point instancer for further operations. I can get all positions but I don't know how to get back their orientations.
Cf. screenshot, on the left what I do manually and on the right when I try to get back in instancer, from source node "out_for_transform", the transformations.
Do you know how to do ?
(cf. simple scene file)
Thank you.
-
- npetit
- Staff
- 419 posts
- Joined: Feb. 2008
- Offline
orient should be a quaternion, not a matrix, and it should live on the (packed) points, not inside the packed geometry.
There is a much simpler way of doing this however - copy the usdxform attrib from the unpacked polys onto the packed USDs, rename it to transform and set the packed USD point positions back to the origin.
Here's an updated hip file.
There is a much simpler way of doing this however - copy the usdxform attrib from the unpacked polys onto the packed USDs, rename it to transform and set the packed USD point positions back to the origin.
Here's an updated hip file.
-
- julca
- Member
- 224 posts
- Joined: Oct. 2015
- Offline
-
- tamte
- Member
- 8959 posts
- Joined: July 2007
- Offline
-
- julca
- Member
- 224 posts
- Joined: Oct. 2015
- Offline
-
- Quick Links