View Issue Details

IDProjectCategoryView StatusLast Update
0002341NoesisGUIDocumentationpublic2022-05-09 17:02
Reportersumel007 Assigned Tojsantos  
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Product Version3.1.4 
Target Version3.1 
Summary0002341: Lottie-Noesis crashes when 3D rotation is used
Description

Below is a traceback from json2xaml script. Attached is a test json file (generated via bodymovin plugin, on a simple circle rotating in 3D).

= Comp 1 - 220 x 220 @60 - 1.68 secs - BodyMovin v5.9.2
Ignored field 'transform.rx'
Ignored field 'transform.ry'
Ignored field 'transform.rz'
Ignored field 'transform.or'
Traceback (most recent call last):
File "F:\WORK\LottieTest\more\json2xaml.py", line 1699, in <module>
main()
File "F:\WORK\LottieTest\more\json2xaml.py", line 1696, in main
json_parser.parse(args.json_file, args.xaml_file)
File "F:\WORK\LottieTest\more\json2xaml.py", line 153, in parse
self.read_composition(obj)
File "F:\WORK\LottieTest\more\json2xaml.py", line 1682, in read_composition
self.write_layer(copy.deepcopy(layer), layers)
File "F:\WORK\LottieTest\more\json2xaml.py", line 1578, in write_layer
if self.has_transform_elements(transform):
File "F:\WORK\LottieTest\more\json2xaml.py", line 624, in has_transform_elements
return self.is_transform_animated(obj) or \
File "F:\WORK\LottieTest\more\json2xaml.py", line 621, in is_transform_animated
self.is_animated(obj.rotation[0])
TypeError: 'NoneType' object is not subscriptable

Steps To Reproduce

Run json2xaml.py on the attached file.

Attached Files
rotationTest.json (1,174 bytes)   
{"v":"5.9.2","fr":60,"ip":0,"op":101,"w":220,"h":220,"nm":"Comp 1","ddd":1,"assets":[],"layers":[{"ddd":1,"ind":1,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"rx":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"t":100,"s":[360]}],"ix":8},"ry":{"a":0,"k":0,"ix":9},"rz":{"a":0,"k":0,"ix":10},"or":{"a":0,"k":[0,0,0],"ix":7},"p":{"a":0,"k":[110,110,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[220,220],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":101,"st":0,"bm":0}],"markers":[]}
rotationTest.json (1,174 bytes)   
PlatformAny

Activities

jsantos

jsantos

2022-05-09 17:01

manager   ~0007925

We still don't support reading 3D transformations from Lottie.

Thanks for the feedback.

Issue History

Date Modified Username Field Change
2022-05-03 21:01 sumel007 New Issue
2022-05-03 21:01 sumel007 File Added: rotationTest.json
2022-05-09 17:01 jsantos Assigned To => jsantos
2022-05-09 17:01 jsantos Status new => assigned
2022-05-09 17:01 jsantos Note Added: 0007925
2022-05-09 17:02 jsantos Target Version => 3.1