<div dir="ltr"><div>You're right, <br>though Joachim pointed out to me that i can serialize the DoubleVectorProperty values into a string and pass it as an element of the StringVectorProperty.<br><br></div>So problem solved for me.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote">On Tue, Sep 13, 2016 at 1:14 PM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">That's some cryptic API on the class that you're writing this proxy<br>
for! I don't exactly follow what those arguments are. In any case, you<br>
can write your own vtkSIProperty subclass and then add support for<br>
such non-standard APIs.<br>
<div><div class="h5"><br>
<br>
<br>
On Tue, Sep 13, 2016 at 5:58 AM, Mathieu Westphal<br>
<<a href="mailto:mathieu.westphal@kitware.com">mathieu.westphal@kitware.com</a>> wrote:<br>
> Hi All<br>
><br>
> I'm trying to create an XML property with a double level of dynamism, and<br>
> can't figure out the right way to do it :<br>
><br>
> So i have a repeat_command StringVectorProperty looking like that<br>
><br>
>       <StringVectorProperty animateable="1"<br>
>                             clean_command="<wbr>RemoveAllArraysToGenerate"<br>
>                             command="SetArrayToGenerate"<br>
>                             name="ArrayToGenerate"<br>
>                             element_types="2 0 0 1"<br>
>                             number_of_elements_per_<wbr>command="4"<br>
>                             repeat_command="1"<br>
>                             set_number_command="<wbr>SetNumberOfArraysToGenerate"<br>
>                             use_index="1"><br>
>       </StringVectorProperty><br>
><br>
> But the thing is, the last element of the command is not suposed to be a<br>
> single double, but an array of double of variable size<br>
><br>
> I've managed to work around it this way :<br>
>       <StringVectorProperty animateable="1"<br>
>                             clean_command="<wbr>RemoveAllArraysToGenerate"<br>
>                             command="SetArrayToGenerate"<br>
>                             name="ArrayToGenerate"<br>
>                             element_types="2 0 0"<br>
>                             number_of_elements_per_<wbr>command="3"<br>
>                             repeat_command="1"<br>
>                             set_number_command="<wbr>SetNumberOfArraysToGenerate"<br>
>                             use_index="1"<br>
>                             panel_visibility="never"><br>
>       </StringVectorProperty><br>
><br>
>       <DoubleVectorProperty animateable="1"<br>
>                             command="<wbr>SetLastArrayConstantValue"<br>
>                             name="LastArrayConstantValue"<br>
>                             number_of_elements_per_<wbr>command="1"<br>
>                             repeat_command="1"<br>
>                             use_index="1"<br>
>                             panel_visibility="never"><br>
>       </DoubleVectorProperty><br>
><br>
> But you can clearly see this will work only if i update the second property<br>
> right after updating the first one, and will definitelly not work with<br>
> statefiles.<br>
><br>
> Any idea how I could do that correctly ?<br>
><br>
> Thanks.<br>
><br>
> Mathieu Westphal<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
><br>
> Search the list archives at:<br>
> <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>Paraview-developers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview-<wbr>developers</a><br>
><br>
</blockquote></div><br></div>