Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing of JSON file started ,An error was encountered #46

Closed
ashuihui opened this issue Mar 23, 2021 · 1 comment
Closed

Writing of JSON file started ,An error was encountered #46

ashuihui opened this issue Mar 23, 2021 · 1 comment

Comments

@ashuihui
Copy link

========= Writing of JSON file started =========
========= An error was encountered =========
File "/Users/dzsb-001971/Library/Application Support/Blender/2.83/scripts/addons/babylon_js/json_exporter.py", line 160, in execute
self.to_json_file()
File "/Users/dzsb-001971/Library/Application Support/Blender/2.83/scripts/addons/babylon_js/json_exporter.py", line 190, in to_json_file
material.to_json_file(file_handler)
File "/Users/dzsb-001971/Library/Application Support/Blender/2.83/scripts/addons/babylon_js/materials/material.py", line 286, in to_json_file
write_float(file_handler, 'emissiveIntensity', self.bjsNodeTree.emissiveIntensity)
File "/Users/dzsb-001971/Library/Application Support/Blender/2.83/scripts/addons/babylon_js/package_level.py", line 336, in write_float
file_handler.write(',"' + name + '":' + format_f(float, precision = precision))
File "/Users/dzsb-001971/Library/Application Support/Blender/2.83/scripts/addons/babylon_js/package_level.py", line 95, in format_f
return format_float(num, '%.' + str(precision) + 'f', stripLeadingZero)
File "/Users/dzsb-001971/Library/Application Support/Blender/2.83/scripts/addons/babylon_js/package_level.py", line 98, in format_float
s = fmt % num # rounds to N decimal places
ERROR: must be real number, not UnsupportedNode
========= end of processing =========
elapsed time: 4 min, 58.4957 secs

@Palmer-JC
Copy link
Collaborator

Palmer-JC commented Mar 23, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants