[X3D-Ecosystem] Progress on Blender import

John Carlson yottzumm at gmail.com
Wed Jul 3 10:56:39 PDT 2024


This has been "simplified" by moving two functions to the other file, and
calling the right code for the job (HAnim/non-HAnim).

X3DJSONLD/blend/localtest/localfinal.py at master · coderextreme/X3DJSONLD
(github.com)
<https://github.com/coderextreme/X3DJSONLD/blob/master/blend/localtest/localfinal.py>

So now I'll probably let LLMs chew on this for a while.

Note that this probably *won't* be the code that makes it to the importer,
this was for exploratory purposes.  I think it's a good idea to separate
the HAnim code from the non-Anim code.

John


On Wed, Jul 3, 2024 at 12:23 PM John Carlson <yottzumm at gmail.com> wrote:

> I would like to present what I have for testing transform animation and
> HAnim EMPTY loading.
>
> I have essentially two Python files now for loading (not importing)
> examples:
>
> This loads simple box animations, with transforms.
>
> X3DJSONLD/blend/localtest/localfinal.py.HAnimNotOK at master ·
> coderextreme/X3DJSONLD (github.com)
> <https://github.com/coderextreme/X3DJSONLD/blob/master/blend/localtest/localfinal.py.HAnimNotOK>
>
> This loads HAnim with correct joint centers(simple figures, LOA1, not LOA4
> and sites due to current memory constraints, which might have workarounds).
> No animation is currently loaded because I don't have LOA1 animations.
>
> X3DJSONLD/blend/localtest/localfinal.py.HAnimOK at master ·
> coderextreme/X3DJSONLD (github.com)
> <https://github.com/coderextreme/X3DJSONLD/blob/master/blend/localtest/localfinal.py.HAnimOK>
>
> I haven't been able to wrap my brain around combining both examples yet,
> despite there being probably minimal differences between two functions.  I
> am primarily using ChatGPT and Claude.ai as a one/two punch.
>  Unfortunately, these tools tend to trim functionality when new
> requirements and examples are added, so it's up to the human (probably me)
> at this point.  Also, the LLMs don't particularly like combining source
> code from different forks either.
>
> When I get a little more motivation, I will work towards putting more
> human effort towards combining create_empty() and process_node().
>
> You can test these files by editing them to replace the .x3d file, then
> loading them into blender.  I normally use bat or shell scripts to launch
> Blender with the appropriate python file.
>
> John
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-ecosystem_web3d.org/attachments/20240703/d5b7a340/attachment.html>


More information about the X3D-Ecosystem mailing list