Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Reference to deleted material remains and causes error in envi context node

12 views
Skip to first unread message

Lars O. Grobe

unread,
Nov 30, 2024, 8:12:46 AM11/30/24
to VI-Suite
Dear Ryan and vi-suite enthusiasts,

when running envi on this minimalistic shoebox model, I am getting an
error message referring to a material (wallMat) that I had initially
applied to some geometry but later replaced by other materials.
Somewhere int he Blender scene, a reference is apparently sticking
around and making it into the context node. Note that I have vi-suite
installed with Blender 4.3, not 4.2 - is this the culprit? Livi runs
without problems on the same scene.

Best, Lars.

Modelfile (compressed): https://drive.switch.ch/index.php/s/KuD5dyLNzvqEWam

VI-Suite

unread,
Nov 30, 2024, 10:26:21 AM11/30/24
to VI-Suite
Hi Lars.
4.3 seems to be OK in this regard as I can replicate on 4.2. I haven't done any testing on 4.3 though so there may be other issues.
If you toggle a setting like 'Proxy' within the material node, adWallMat is the culprit, it should clear the reference to the old material. 
A potential code fix is detailed below that I'll include in the next master commit.

In the vi_node.py file at around the line 7609 the first 2 lines of the ep_write function are currently:

    if self.get('bm') and self['bm'] != self.envi_con_base:
        self.envi_con_base = self['bm']
        
Change this to:

    if self.get('bm') and self['bm'] != self.envi_con_base:
        try:
            self.envi_con_base = self['bm']
        except:
            self['bm'] = str(self.envi_con_base)

Just be aware spacings and tabs matter in Python.
Cheers
Ryan

Lars O. Grobe

unread,
Dec 3, 2024, 9:24:05 AM12/3/24
to VI-Suite

Dear Ryan,

thank you for solving this, I can confirm that the suggested change works on 4.3.

Best, Lars.


--
You received this message because you are subscribed to the Google Groups "VI-Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vi-suite+u...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/vi-suite/88935aea-4f62-4ae0-b303-4b40296adbeen%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages