<div dir="ltr"><div><div><div>Hi Yvan<br><br></div>I understand your catalyst issue but I do not see any other solutions.<br><br></div>Regarding loading a plugin from python, it actually is quite simple :<br><br>>>> from paraview.simple import *<br>>>> LoadPlugin("path/to/lib.so")<br><br></div>Best regards,<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 Wed, Aug 9, 2017 at 12:29 PM, <span dir="ltr"><<a href="mailto:yvan.fournier@free.fr" target="_blank">yvan.fournier@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
We have been using Catalyst (with Python coprocessing scripts) in our code for quite a while now, and am trying to see how to make thing more user-friendly.<br>
<br>
One of the main issues we have is that if plugins are loaded in ParaView when using the Coprocessing Generator plugin, extra lines regarding those plugins may appear in the script, even when not dreclty used. For example, when the PointSprite plugins is enabled in PV 5.1, it adds opacity transfer function informations. This particular example might not be relevant to PV 5.4 with integrated PointGaussian, but other plugins may add similar entries, whether used or not in a particular view.<br>
<br>
This causes issues using Catalyst, as those plugins are not enabled in Catalyst (even using a full ParaView install with OSMesa as Catalyst, not editions, often too incomplete).<br>
<br>
One solution is to remove the "offending" lines (i.e. run once, check lines reported in error logs, removec those, run again, ...) which while not complicated, tends to scare users and requires multiple additional iterations to setup a visualization.<br>
<br>
A better solution would be to allow loading of plugins from the Python script (especially as I expect it would allow using plugins such as SurfaceLIC from within Catalyst), but I can't find any documentation for this. I seem to remember some people from Kitware mentioning this was possible in a live discussion I had, but have no additional details.<br>
<br>
Is there a way to tell ParaView/Catalyst to load a particular plugin from within a Python script ? IF yes, what's the syntax ?<br>
<br>
Best regards,<br>
<br>
Yvan<br>
______________________________<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 <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
</blockquote></div><br></div>