
60
USING CAPTIVATE
Adding and Managing Objects
Last updated 9/28/2011
6 Add the other attributes, such as type and default_value. For more information, see “XML elements for effects
configuration parameters” on page 60.
7 Repeat steps 4, 5, and 6 to enable editing for as many properties as you want.
XML elements for effects configuration parameters
The hierarchy of the effect_config element is as follows:
<effect_config>
<config_item>
<effect_property type="number" property_value="BLUR_X" default_value="50">
</config-item>
<config_item>
<effect_property type="list" property_value="QUALITY" default_value="1">
<list_items>
<list_item>
</list_item>
</list_items>
</effect_property>
</config_item>
<config_item>
<effect_property type="color" >
<effect_sub_property>
</effect_sub_property>
</effect_property>
</config_item>
</effect_config>
Element Attribute Value Type Description
effect_config effect_type motion_path Use this attribute to display the handles for editing the
x and y coordinates of the motion path.
config_item display_name String Specify the name of the configuration item (property)
displayed to users on the Effects panel.
effect_property property_value
This attribute is
mandatory.
String Specify the value of the configuration item. This value
must be the same as the one that corresponds to the
appropriate property in the ‘Keyframes’ element.
For example, in the Glow.XML file (Gallery > Effects >
Filters), the Keyframe element contains BLUR_X as the
value for blurX. To make the value of ‘blur’ editable from
the user interface, add BLUR_X as the property_value in
the effect_config element.
default_value Number Specify the default value displayed on the user
interface.
valid_range
Syntax:
valid_range="{
{0,255}}"
Number Specify the range of values applicable for the
configuration item. For example,
valid_range="{{0,255}}" indicates that the lowest value
is 0 and the highest is 255.
You can specify the attribute ‘modifiers’ to modify the
value specified on the user interface.
Comentarios a estos manuales