70001332 Turn the lighting off in 3d so that it doesn't change the colours to lighter shades

Article 70001332
Type Wish
Product WebJS
Version 7014
Date Added 5/21/2018 12:00:00 AM
Fixed 7.7015.0.5 (5/21/2018 12:00:00 AM)
Submitted by Brendan Fry

Summary

Is it possible to turn the lighting off in 3d so that it doesn't change the colours to lighter shades.

Solution

Added in version 7015.0.5
In order to turn all of the lights of the document off,the bellow code can be used:

    var lights = vdcanvas.GetDocument().Lights;
    lights.Default.Enable = false;
    for (var i = 0; i < lights.length; i++) {
         lights[i].Enable = false;
    }
    setTimeout(vdcanvas.redraw);

Send comments on this topic.