Perspective, add items in array of props, with default values for items props

In perspective, in the desigenr when you click “+” next to pens, for example in the power chart component,


A new item is added in the array with an object structure with default value.

Is there a way to create a new item in pens array by script, but without specify all the props in order some props take default values ?

No, not in any dynamic way. That automatic behavior is a function of the JSON editor, not the actual property structure. You’d have to hardcode your ‘default’ elements for each possible value you would want to insert.

thanks, it was a bit utopian :mage: