BrunoLevy / GraphiteThree

Experimental 3D modeler
GNU General Public License v2.0
213 stars 18 forks source link

Filter attribute combo box by primitive / type #10

Open lbinria opened 4 months ago

lbinria commented 4 months ago

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

BrunoLevy commented 4 months ago

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

lbinria commented 4 months ago

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