TypeError: Object of type Vector is not JSON serializable

Home Forums Graphics / Blender TypeError: Object of type Vector is not JSON serializable

This topic contains 5 replies, has 2 voices, and was last updated by Ivan Lyubovnikov Ivan Lyubovnikov 1 month, 1 week ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #21730
    GlifTek
    GlifTek
    Licensee

    hi
    just got this message on exporting verge gltf.
    “TypeError: Object of type Vector is not JSON serializable”
    any clues as to what i should fix? (besides it having to do with a vector) ?

    thanks

    • This topic was modified 1 month, 2 weeks ago by GlifTek GlifTek.
    #21739

    hi, can you provide an example to reproduce? this seems like a bug in the exporter

    Co-founder and lead developer at Soft8Soft.

    #21755
    GlifTek
    GlifTek
    Licensee

    Vector is not JSON serializable

    ok i am pretty sure i ironed it down to this node group network here…
    as
    (i deleted everything else one by one and it always failed until i deleted this group…)

    is it because the vector is going into a color mix?
    when it leaves the node group it goes into a separate xyz.
    (that setup is from a tutorial)
    i thought of (and will try) to use a vector math then something else…
    (still need to use the greater than math as a fac in something tho…)

    Attachments:
    You must be logged in to view attached files.
    #21757
    GlifTek
    GlifTek
    Licensee

    instead of the color mixer.. i tried it with a mix shader (to use the Fac) then to shader to rgb then to separate xyz.. worked in blender but didn’t export.
    …no other nodes have Fac except for color mix and shader mix huh?

    any other way i could combine the vectors AND the Fac (to mask)
    (this is all to make a mirrored symmetrical pattern on the x axis of an object by the way)

    #21758
    GlifTek
    GlifTek
    Licensee

    weird…

    i just deleted it all .. then reconstructed it identically… and it works fine..

    very strange.

    (actually this time i put the Separate XYZ WITHIN the node group.. so the output was “Z” as opposed to “Color”)..

    • This reply was modified 1 month, 2 weeks ago by GlifTek GlifTek.
    #21898

    We actually found the cause of such crashes. It was indeed related to input/output sockets in node groups. Wasn’t easy to reproduce though and has happened occasionally only for some specific node setups.

    This will be fixed in the next verge3d release. Thanks for the report :good:

    Co-founder and lead developer at Soft8Soft.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.