Log in or register to post comments

JSON wont work on position

November 21, 2013 - 11:50am #1

Hi, i upload a 3D object to appear and this have a JSON for rotation, scale and position, but the object just read the scale and rotation. The position always is the same, and i cant move it.

The same JSON works perfectly with other objects, is just this one.

This is the JSON:

{
  "assetType": 1,
  "positionX": "0",
  "positionY": "-4.5",
  "positionZ": "0",
  "rotationX": "0",
  "rotationY": "0",
  "rotationZ": "0",
  "localScaleX": "1",
  "localScaleY": "1",
  "localScaleZ": "1"
}
 
Thank you.

JSON wont work on position

November 22, 2013 - 5:48am #3

Hi David, i test the Y position and thats why i'm using "-4". Also try with -100 and -1000 and still wont work.

This is an animated character exported from 3DSMAX to FBX. It moves right, just cant locate it where i want.

Thank you

JSON wont work on position

November 21, 2013 - 12:16pm #2

Have you checked the Y position after setting it to determine whether the value is assigned?

Also you might try increasing the magnitude of the Y value to determine whether the target position is actually changing. The target dimensions determine the scene's unit scale and it may be that 4.5 is proportionally very small and so unnoticeable.

Log in or register to post comments