GraphiteThree icon indicating copy to clipboard operation
GraphiteThree copied to clipboard

Filter attribute combo box by primitive / type

Open lbinria opened this issue 1 year ago • 2 comments

It would be very useful to be able (by C++ / LUA code) to display a filtered version of attributes combo box. For example, if we want to display a combo box that only contains all vertices attributes, or eventually all vertices.bool attributes.

Below, lock attribute expect to be a vertices.bool attribute, but combo box contains all attribute types:

Screenshot from 2024-02-16 09-30-39

lbinria avatar Feb 16 '24 08:02 lbinria

Just pushed a new version. See lib/programming_examples/Lua/custom_commands for an example.

BrunoLevy avatar Feb 18 '24 11:02 BrunoLevy

:+1: , good for me ! But it seems that you change the attribute names format. For example vertices.bool become vertices.OGF::Numeric::uint8.

lbinria avatar Feb 21 '24 10:02 lbinria