I put these macros in my Peavip lib : <a href="http://github.com/jeromevelut/Peavip">http://github.com/jeromevelut/Peavip</a><br>It was initially devoted to expose VTK native filters in ParaView, but I think that it makes sense to put also ParaView python macros.<br>
<br>It could be a solution to use such a repo to share macros. What do you think?<br><br>Jerome<br><br><div class="gmail_quote">2011/7/12 Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Sweet. That's neat. We need to start thinking of a mechanism to<br>
share/distribute macros now :).<br>
<font color="#888888"><br>
Utkarsh<br>
</font><div><div></div><div class="h5"><br>
On Tue, Jul 12, 2011 at 2:36 PM, Jérôme <<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>> wrote:<br>
> Macro-ized !<br>
><br>
> Richard, just add the attached py files as new macros and you will be able<br>
> to switch between MIP, MinIP and Composite (the defaut one) volume<br>
> rendering.<br>
> These macros are more than minimalist (2 lines) : they can be easily<br>
> extended to check the current representation and toggle to volume<br>
> automatically.<br>
> I hope it will be helpful for you<br>
> Jerome<br>
><br>
> 2011/7/12 Utkarsh Ayachit <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>><br>
>><br>
>> Cool. I wasn't aware of this :).<br>
>><br>
>> To change the blend mode from Python shell, all you do is following<br>
>> (with the source being volume rendering active in the pipeline<br>
>> browser):<br>
>><br>
>> SetDisplayProperties(BlendMode="MaximumIntensity")<br>
>><br>
>> Utkarsh<br>
>><br>
>><br>
>> On Tue, Jul 12, 2011 at 1:08 PM, Jérôme <<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>> wrote:<br>
>> > Hi,<br>
>> > I asked a while ago for the possibility to expose BlendMode (MIP is one<br>
>> > of<br>
>> > the BlendMode) in rendering proxies and I was granted :<br>
>> > <a href="http://www.cmake.org/pipermail/paraview/2009-October/014157.html" target="_blank">http://www.cmake.org/pipermail/paraview/2009-October/014157.html</a><br>
>> ><br>
>> ><br>
>> > <a href="http://paraview.org/gitweb?p=ParaView.git;a=commit;h=3a07a88345910d5605e042287391e6623af9deb5" target="_blank">http://paraview.org/gitweb?p=ParaView.git;a=commit;h=3a07a88345910d5605e042287391e6623af9deb5</a><br>
>> ><br>
>> > By grep-ing current sources, I found that BlendMode is exposed for<br>
>> > GPUVolumeRayCastMapper and FixedPointVolumeRayCastMapper. However, I<br>
>> > don't<br>
>> > know how easily you can toggle the BlendMode from python shell...<br>
>> ><br>
>> > Jerome<br>
>> ><br>
>> > 2011/7/12 Utkarsh Ayachit <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>><br>
>> >><br>
>> >> No, ParaView does not support MIP at this time.<br>
>> >><br>
>> >> Utkarsh<br>
>> >><br>
>> >> Sent from my iPad<br>
>> >><br>
>> >> On Jun 22, 2011, at 6:49 PM, Richard Beare <<a href="mailto:richard.beare@gmail.com">richard.beare@gmail.com</a>><br>
>> >> wrote:<br>
>> >><br>
>> >> > Hi,<br>
>> >> > The volume rendering works successfully. Thank you for the<br>
>> >> > assistance.<br>
>> >> > Further investigations have suggested that Imaris is probably<br>
>> >> > performing simple maximum intensity projection, but enabling the user<br>
>> >> > to rotate the volume and producing nice colour combinations. Is there<br>
>> >> > any MIP facility in paraview?<br>
>> >> ><br>
>> >> > Thanks<br>
>> >> > _______________________________________________<br>
>> >> > Powered by <a href="http://www.kitware.com" 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" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >> ><br>
>> >> > Please keep messages on-topic and check the ParaView Wiki at:<br>
>> >> > <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>> >> ><br>
>> >> > Follow this link to subscribe/unsubscribe:<br>
>> >> > <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>> >> _______________________________________________<br>
>> >> Powered by <a href="http://www.kitware.com" 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" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >><br>
>> >> Please keep messages on-topic and check the ParaView Wiki at:<br>
>> >> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>> >><br>
>> >> Follow this link to subscribe/unsubscribe:<br>
>> >> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>> ><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br>