ID 421548 - Layers can be set to non-existent effects via python

Follow

Problem summary
Layers can be set to non-existent effects via python. This can cause a crash at render time. In some instances these effects will appear identical to real effects and be difficult to diagnose as a result.

Customer reported version
modo.13.1v1

Customer reported platform
windows10

Steps to reproduce
1) Open Modo. 
2) Open the attached scene. 
 Note: This is a scene where the layer effect of a render output has been set to "alpha" instead of "shade_alpha"
3) Press "f9" on the keyboard to render the scene.
Result: Modo will render the scene, then crash upon completion.

Expected behaviour
Modo should not allow non-existent layer effects to be applied.

Actual behaviour
Modo allows non-existent layer effects to be applied, which can cause a crash later on.

Workaround
Make sure all layer effects are valid effect types.

Reproduced by support
This bug has been reproduced in:
13.2v1 - Windows 10, OSX 10.14.6
13.1v1 - Windows 10
13.0v1 - Windows 10
12.2v2 - Windows 10
12.2v1 - Windows 10
12.1v1 - Windows 10
12.0v1 - Windows 10
11.2v3 - Windows 10
11.2v1 - Windows 10
11.1v1 - Windows 10
11.0v3 - Windows 10
10.2v4 - Windows 10, OSX 10.14.6

Earliest version tested
10.2v4 - Windows 10, OSX 10.14.6 - This issue appears to be in all versions of the product

    We're sorry to hear that

    Please tell us why