Kairos icon indicating copy to clipboard operation
Kairos copied to clipboard

Define attributes of properties for reflection-based editors in the Inspector

Open natan-sinigaglia opened this issue 2 years ago • 5 comments

The list of attributes that we need in order to customize the editing of the datatype properties.

  • Widget <String>
  • Size <Vector2> (if 0 it is elastic)
  • Default Value <T>
  • Minimum Value <T>
  • Maximum Value <T>
  • Unit <String>
  • Step Size <T>
  • Is Cycled
  • Hide
  • Expose
  • Format <String>
  • IsMonitor
  • GridLayoutCoord (Vector2) (check if we can use the position of the first top-left pad)
  • SortingIndex (Float32) (check if we can use the position of the first top-left pad)

Type (IVLObject) Attributes:

  • VisualizationType (Tree/Tabs/Popup)
  • LayoutType <String>
  • Size <Vector2> (if 0 it is elastic)
  • Columns <Spread<Integer32>>(2,3,5, ...) (Elements per column)
  • Rows <Spread<Integer32>>(2,3,5, ...) (Elements per row)
  • Grid (3,4) (Columns, Rows count)

....

natan-sinigaglia avatar Oct 21 '22 15:10 natan-sinigaglia

Does it make also sense to define here which kind of interpolation method is applied to the Property?

lasalillo avatar Nov 03 '22 12:11 lasalillo

I would say that the interpolation method is stored into the keyframe/clip model, because you might want to have different interpolation techniques in different keyframes. We could eventually have a "default interpolation method" attribute where we can specify a default method for the property

natan-sinigaglia avatar Nov 03 '22 16:11 natan-sinigaglia

Default interpolation method (string)

natan-sinigaglia avatar Nov 03 '22 16:11 natan-sinigaglia

It sounds good to me

lasalillo avatar Nov 03 '22 19:11 lasalillo

@azeno these attributes count be a good start for testing the inspector features

natan-sinigaglia avatar Nov 27 '22 21:11 natan-sinigaglia