maya-usd icon indicating copy to clipboard operation
maya-usd copied to clipboard

Transform error: Type mismatch expected 'GfVec3f', got 'GfVec3d'

Open hamedsabri opened this issue 3 years ago • 4 comments

Describe the bug I am getting a type mismatch error after duplicating attached butterfly.usd and trying to move it using transform manip.

image

Steps to reproduce Steps to reproduce the behavior:

  1. Create stage from file
  2. Select butterfly usd.
  3. Select myosotis mesh
  4. Duplicated it once
  5. Selected Move ( W )
  6. Move the duplicated mesh on any axis

Attachments Get the USD files in the description of Bifrost USD demo video: https://www.youtube.com/watch?v=5hSx6PfXfg8&t=536s

Specs (if applicable):

  • OS & version [e.g. Linux ( Ubuntu 18.04.6 LTS )].
  • Maya version [e.g. Maya PR 135]
  • Maya USD commit SHA [e.g. 0.19.0]

hamedsabri avatar Sep 18 '22 15:09 hamedsabri

Hi @hamedsabri ! Hope you have been doing well. I took a look and I am able to repro the error. For me the error also occurs if I attempt to move the original myosotis mesh using the move tool. It seems that the reason behind this is because a float3 is being used for the translate xformOp if I switch that to a double3 then all works as expected and no error is given. I am going to look into this and see if a float3 should be supported for the translate and will log the issue accordingly.

santosd avatar Sep 19 '22 16:09 santosd

Hi David. Thanks. Hope you are doing well as well.

Thanks for looking into this. Yeah, I would imagine both float3 and double3 would be supported unless there is a reason float is not supported.

hamedsabri avatar Sep 19 '22 20:09 hamedsabri

Hi @hamedsabri, I looked into this and it seems that USD does support double3, float3, and half3. However, in Maya itself all translations (including pivots) are double precision. For now, single-precision float translation are not supported. Is this something that is interrupting your workflow? If so, I can log an internal ticket for this and see if there is something we can do to add support for this.

santosd avatar Nov 29 '22 15:11 santosd

Hi @hamedsabri just wanted to check back on this and see if single-precision float is import to your workflow and if we need a ticket logged for it.

santosd avatar Jan 05 '23 16:01 santosd