Skip to content

Instantly share code, notes, and snippets.

@dolutattoo
dolutattoo / lights_notes.md
Created February 9, 2023 14:12
Blender Sollumz - Lights notes

Sollumz Lights

Spot

Settings

  • Distance - Falloff
    • Require to enable "Custom Distance". Default in blender is 40 which is way too much for 99% cases.
  • This value needs to be set depending of your light path length.
@dolutattoo
dolutattoo / flags.lua
Last active September 29, 2023 19:33
While working on my tool I needed to retrieve flags from a value to show them separately in a menu. Here is how I did it, in case this can help someone:
---@param x The value you want to retrieve flags from
---@return table?
local function findFlags(x)
if not x or type(x) ~= 'number' then return end
-- All flags available for the value. Here is flags for MLO portal
local all_flags = { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8196 }
local flags = {}
for _, flag in ipairs(all_flags) do