WRL: Issues with animation via Interpolators: KeyError: 'Transform' for ScalarInterpolatorand no accordingly set keyframes for all interpolators #14

Open
opened 2024-08-13 23:07:31 +02:00 by Cedric Steiert · 0 comments
Collaborator

I asked GPT to generate me a sample wrl file for animations (according to GPT and Gemini the file is valid), however it does not work currently in the importer. There are two main issues is see with the file animatedBox.wrl:

  • using ScalarInterpolator with ROUTE throws KeyError: 'Transform'.
    Testing with the second attached file (simple_example from http://www.graphics.stanford.edu/courses/cs248-98-fall/Assignments/Assignment3/VRML2_Specification/spec/part1/examples.html) transform works, but not animated like in the first file.
  • Animations do not work.
    In attached file all animations should play in loop as there is no conditional like a trigger via e.g. ProximitySensor, instead a TimeSensor is used and it theoretically should play.
    From my current understanding the issue here lies in not setting keyframes inside blender accordingly. At least the basic animations like Loc, Rot, Scale via PositionInterpolator, OrientationInterpolator, ScalarInterpolator should be supported and ideally on top Shapekeys via CoordinateInterpolator.
    Quick checking the current code Loc, Rot, Scale should be supported at least at a basic level (however code comments suggest those features are untested). Shapekeys would be a feature to be added.
Python: Traceback (most recent call last):
  File "C:\Users\suupe\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\web3d_x3d_vrml2_format\__init__.py", line 52, in execute
    return import_x3d.load(context, **keywords)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\suupe\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\web3d_x3d_vrml2_format\import_x3d.py", line 3732, in load
    load_web3d(context, filepath,
  File "C:\Users\suupe\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\web3d_x3d_vrml2_format\import_x3d.py", line 3661, in load_web3d
    node = defDict[key]
           ~~~~~~~^^^^^
KeyError: 'Transform'

I asked GPT to generate me a sample wrl file for animations (according to GPT and Gemini the file is valid), however it does not work currently in the importer. There are two main issues is see with the file `animatedBox.wrl`: - using `ScalarInterpolator` with `ROUTE` throws `KeyError: 'Transform'`. Testing with the second attached file (simple_example from http://www.graphics.stanford.edu/courses/cs248-98-fall/Assignments/Assignment3/VRML2_Specification/spec/part1/examples.html) transform works, but not animated like in the first file. - Animations do not work. In attached file all animations should play in loop as there is no conditional like a trigger via e.g. `ProximitySensor`, instead a `TimeSensor` is used and it theoretically should play. From my current understanding the issue here lies in not setting keyframes inside blender accordingly. At least the basic animations like Loc, Rot, Scale via `PositionInterpolator`, `OrientationInterpolator`, `ScalarInterpolator` should be supported and ideally on top Shapekeys via `CoordinateInterpolator`. Quick checking the current code Loc, Rot, Scale should be supported at least at a basic level (however code comments suggest those features are untested). Shapekeys would be a feature to be added. ``` Python: Traceback (most recent call last): File "C:\Users\suupe\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\web3d_x3d_vrml2_format\__init__.py", line 52, in execute return import_x3d.load(context, **keywords) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\suupe\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\web3d_x3d_vrml2_format\import_x3d.py", line 3732, in load load_web3d(context, filepath, File "C:\Users\suupe\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\web3d_x3d_vrml2_format\import_x3d.py", line 3661, in load_web3d node = defDict[key] ~~~~~~~^^^^^ KeyError: 'Transform' ```
Cedric Steiert added the
enhancement
Normal
bug
confirmed
labels 2024-08-13 23:07:31 +02:00
Cedric Steiert changed title from Issues with animation via Interpolators: `KeyError: 'Transform'` for `ScalarInterpolator`and no accordingly set keyframes for all interpolators to WRL: Issues with animation via Interpolators: `KeyError: 'Transform'` for `ScalarInterpolator`and no accordingly set keyframes for all interpolators 2024-08-13 23:25:41 +02:00
Sign in to join this conversation.
No description provided.