Locator from Maya VEX snippet
Added 2020-06-01 10:56:30 +0000 UTCIn the "Intro to USD" video I used a couple of VEX lines to get the position and rotation from Maya locators into Houdini, using a copy to points to instance props in the environment. That workflows is meant to be used with "fixed assets", like cars, or furniture. If you are planning to do something organic, like a jungle, it is much better to use a more organic approach, like scatterer systems.
But if you still need the Maya approach combined with organic asset, the VEX code that I used on the video wouldn't work, because it is missing the scale information. If you need different sizes from Maya you can use this VEX snippet and all the transformations should work just fine.
vector4 cRot=eulertoquaternion(v@parentRot, XFORM_XYZ);
vector4 @Rot;
@rot=cRot;
vector @scale;
@scale = v@parentScale;
@Cd = relbbox(0, @P);