Well, that's the way properties work. For your purpose we have service metadata:
http://www.mltframework.org/twiki/bin/view/MLT/MetadataRequirements

The notes on that page are kinda rough. An example is more illustrative:
http://www.mltframework.org/twiki/bin/view/MLT/MetadataYamlSample

But the problem is that not everything has metadata - far from it. So, you can not create completely generic interfaces at the moment (except perhaps for frei0r-based effects). Kdenlive chose to make its own effects GUI XML files.

On Sun, Aug 29, 2010 at 1:31 PM, christophe tornieri <christophe.tornieri@gmail.com> wrote:
I understand the point but without knowing the exact type of the property, it is not possible to attach a specific behavior. For instance, suppose that the variant contains a value "12" but that this value represents, let's say, a title, I can convert it to an int, a double, ... and also a text. If I need to automatically construct an interface from the list of properties, I cannot determine the best way to construct it: an edit text line, a slider, ...

Christophe


On Sun, 2010-08-29 at 12:07 -0700, Dan Dennedy wrote:
They are like variants. You can get a string as int or double, and you can get a double from a string or int (provided they convert sanely, otherwise you get 0). In addition, there are special things like string expressions (simple math operations) and color values (CSS-style) that can evaluate to an integer.

On Sun, Aug 29, 2010 at 7:14 AM, christophe tornieri <christophe.tornieri@gmail.com> wrote:
Hi,

I recently read the doxygen documentation of MLT and I don't find anyway to retrieve the type of a property. You can get the number of properties, their names, their values but not their types. It is useful for automatically construct graphic interface from a service.

Is there a way to retrieve the type of a property ?

Thanks,

Chris







Christophe

Visit my website
Visitez mon site web

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel




--
+-DRD-+







Christophe

Visit my website
Visitez mon site web




--
+-DRD-+