Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Light groups as a Plasma modifier #289

Open
dpogue opened this issue Sep 1, 2021 · 2 comments
Open

Light groups as a Plasma modifier #289

dpogue opened this issue Sep 1, 2021 · 2 comments

Comments

@dpogue
Copy link
Member

dpogue commented Sep 1, 2021

Right now light groups are handled using the Blender's existing (per-material) system, but there are times it is better to assign light groups on a per-object basis rather than per-material.

Additionally, the material light group option only allows setting a single group (which admittedly is not much of a problem since lamps can belong to multiple groups).

I'm imagining a Plasma Modifier to set groups on a per-object basis. My current thinking is that the modifier would always take precedence over the material light group:

if bobj.plasma_modifiers.light_groups:
  # Use the light groups from the modifier
elif bobj.material.light_group:
  # Use the material light group
else:
  # Default
@Hoikas
Copy link
Member

Hoikas commented Sep 1, 2021

Any reason why the modifier shouldn't combine the material listing with the object listing?

@dpogue
Copy link
Member Author

dpogue commented Sep 2, 2021

It could do that. My thinking was that you might have a bunch of objects with the same material that you want affected by the same light group, but have one object using that material that you don't want affected by that group, and could add a modifier with no groups to achieve that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants