<div dir="ltr"><div><div><div><div><div><div><div>Hi All<br><br></div>I'm trying to create an XML property with a double level of dynamism, and can't figure out the right way to do it :<br><br></div>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></div>But the thing is, the last element of the command is not suposed to be a single double, but an array of double of variable size<br><br></div>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></div>      <DoubleVectorProperty animateable="1"<br>                            command="SetLastArrayConstantValue"<br>                            name="LastArrayConstantValue"<br>                            number_of_elements_per_command="1"<br>                            repeat_command="1"<br>                            use_index="1"<br>                            panel_visibility="never"><br>      </DoubleVectorProperty><br><br></div>But you can clearly see this will work only if i update the second property right after updating the first one, and will definitelly not work with statefiles.<br><br></div>Any idea how I could do that correctly ?<br><div><div><br><div>Thanks.<br></div><div><div><div><br clear="all"><div><div><div><div><div><div dir="ltr">Mathieu Westphal<br></div></div></div>
</div></div></div></div></div></div></div></div></div>