Page MenuHome

Geometry: add Attributes panel for PointCloud and Hair
ClosedPublic

Authored by Brecht Van Lommel (brecht) on Aug 19 2020, 7:21 PM.

Details

Summary

There is a list of attributes, along with operators to add and remove
attributes. For adding, there are a few standard attributes that can be
added quickly, as well as a popup to create a custom attribute.

Depends on D8635

Diff Detail

Event Timeline

Brecht Van Lommel (brecht) requested review of this revision.Aug 19 2020, 7:21 PM
Jacques Lucke (JacquesLucke) added inline comments.
release/scripts/startup/bl_ui/properties_data_hair.py
60

I can imagine that this loop will become quite common in scripts. Maybe we should add a attributes.find(name: str, type: str, domain: str) -> Optional[Attribute] method.

92

Personal preference: f"{domain.name} {data_type.name}"

This revision is now accepted and ready to land.Aug 20 2020, 12:13 PM

Address comments indirectly.

  • Tweak layout, to put domain and data type in separate columns.
  • Gray out based on only the name matching, since multiple data types or domains may be valid.