The default widget portfolio in ParaView doesn't support such a property. However, you can implement a custom pqPropertyWidget subclass that places 2 combo-boxes. Use pqIntVectorPropertyWidget [1] as a reference. [2],[3] may be useful reads to understand the property-widget infrastructure in ParaView.
Utkarsh [1] http://www.paraview.org/ParaView3/Doc/Nightly/www/cxx-doc/classpqIntVectorPropertyWidget.html [2] http://www.paraview.org/Wiki/ParaView/Properties_Panel [3] http://www.paraview.org/Wiki/Plugin_HowTo#Adding_Customizations_for_Properties_Panel On Wed, Nov 19, 2014 at 11:24 AM, Gonzalo Brito Gadeschi <g.br...@aia.rwth-aachen.de> wrote: > I'm trying to write an IntVectorProperty with two drop down list next to > each other. > > Ideally it would call a function that takes to arguments, and passes the > value of each drop down menu to each argument. I am however open to > workarounds. > > This is my best attempt but of course it crashes paraview: > > <IntVectorProperty name="Neighbors" > command="set_load_node_neighbors" > number_of_elements="2" > default_values="-1 -2"> > <EnumerationDomain name="enum"> > <Entry value="-1" text="None"/> > <Entry value="1" text="Faces"/> > <Entry value="2" text="Edges"/> > <Entry value="3" text="Corners"/> > </EnumerationDomain> > <EnumerationDomain name="enum"> > <Entry value="-2" text="None"/> > <Entry value="4" text="Same level"/> > <Entry value="5" text="Children level"/> > <Entry value="6" text="Both"/> > </EnumerationDomain> > </IntVectorProperty> > > Any ideas / suggestions about how to achieve this? > > Bests, > Gonzalo > > -- > Dipl.-Ing. Gonzalo Brito Gadeschi > Institute of Aerodynamics and Chair of Fluid Mechanics > RWTH Aachen University > Wuellnerstraße 5a > D-52062 Aachen > Germany > Phone: ++49-(0)241-80-94821 > Fax: ++49-(0)241-80-92257 > E-mail: g.br...@aia.rwth-aachen.de > Internet: www.aia.rwth-aachen.de > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview