andrewhwood / alembic

Automatically exported from code.google.com/p/alembic
Other
0 stars 0 forks source link

Transform position data written in Centimeters world space units ONLY #317

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In a animation scene, set Maya's "settings" > "Working Units" > "Linear" to 
anything other than "centimeter", and hit "Save". 
2. Make sure animation to the object that is going to be Alembic Exported is 
animating the transforms only ( No deformation to geometry ) and is away from 
zero world-space.
3. Do an Export to Alembic.
4. Do an Import Alembic of what you just exported in to the current scene.
5. Notice the Alembic import object is not in same position as originally 
animated.

What is the expected output? What do you see instead?
We are expecting to see the Alembic import object in the same world-space 
position as the object when originally animated. Instead we are seeing the 
Alembic import object is offset in world-space from the originally animated 
object.

What version of the product are you using? On what operating system?
Plug-in version: 1.0. For Maya 2013 x64 Service Pack 2. running on Windows 7, 
Service Pack 1, 64 bit Operating System.

Please provide any additional information below.
Through problem solving I was able to determine that the alembic transform 
value data is being written out in centimeters, regardless if the current scene 
units are in Inches,  millimeters, etc.  
As a work-around, the Maya animation scene needs to be set to "centimeter" 
world-space units before Alembic Exporting in order for the Alembic File to be 
a one to one correlation to the objects originally animated position in space.

Original issue reported on code.google.com by D4N13...@gmail.com on 24 Sep 2013 at 1:45

GoogleCodeExporter commented 9 years ago
It's a little odd that MFnTransform expects centimeters:

http://docs.autodesk.com/MAYAUL/2013/ENU/Maya-API-Documentation/index.html?url=p
ython-api/MFnTransform.html,topicNumber=python_api_MFnTransform_html

But the points like MFnMesh does not.

Original comment by miller.lucas on 24 Sep 2013 at 5:14