Skip to content

Allow dynamic node palette changes #16772

@nauta-turbidus

Description

@nauta-turbidus

Problem

Sometimes, you might want to recolor all nodes that have paramtype2 = "color" (or variant thereof) to a different preset. A specific example of it would be a season system: a global palette change could be used to recolor all leaves on trees to autumn colors and then winter colors, and then spring and summer colors again. Now this can be done only on restart, or by changing param2 for all nodes of a type.

Solutions

Allow dynamically changing palette of a node. This would be akin to allowing a very small part of override_node() after load time.

Alternatives

Change param2 for each node in ABM/LBM/globalstep – this has the risk of overflowing the palette and obviously has overhead, and may cause a patchy look for a time, which may be desirable or not.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions