Search - User list
Full Version: Transformed asset to point instancer
Root » Solaris and Karma » Transformed asset to point instancer
julca
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.
npetit
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.
julca
Hello @npetit,

Super, thank you for your explanation and solution.
That's simple to use and very useful.
tamte
alternatively you can just append Point Wrangle after your lopimport1

string stage = primintrinsic(0, "usdFileName", @primnum);
string path = primintrinsic(0, "usdPrimPath", @primnum);
3@transform = matrix3( usd_worldtransform(stage, path) );
julca
Wouahoo that's just one node !
Next step is only magic !

Thank you @tamte for this quick and short solution.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB