We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

TypeError: Object of type Vector is not JSON serializable

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

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #21730
    GlifTekGlifTek
    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 8 months ago by GlifTekGlifTek.
    #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
    GlifTekGlifTek
    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
    GlifTekGlifTek
    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
    GlifTekGlifTek
    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 8 months ago by GlifTekGlifTek.
    #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.