Scripting: y-up coordinate to z-up

   1857   3   1
User Avatar
Member
141 posts
Joined: 12月 2015
Offline
Hey

I need to export my data as JSON file, and I have to deliver these in z-up coordinate system. I was told it's enough to swap the coordinate, but apparently it's not enough.

I use this
mtx *= hou.Matrix4([,,,])

but I'm not sure if it's OK.

Could somebody give a hint? Basically I need to export my data in Z-up righthanded coordinate system

Cheers


Szabolcs
User Avatar
Member
2538 posts
Joined: 6月 2008
Offline
Can't you just drop down a Transform and rotate your object before you write out the file?
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
141 posts
Joined: 12月 2015
Offline
Unfortunately, it wouldn't work, I need to do it on crowd agents also, and plenty of objects. I do not want to transform the whole scene on each frame…
User Avatar
Member
178 posts
Joined: 1月 2013
Offline
Assuming a hierarchy is involved…

Can you throw it all in a subnet and just transform the matrix on the top level?
  • Quick Links