Hi kodde, as far as I know, you cannot make the code check if a texture has been loaded. The workaround I adopted, and I guess is pretty standard, is to use a checkbutton widget in the UI. If it is checked the texture is taken into account, otherwise do the standard calculations without considering it. bool…