<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-CA" link="blue" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi, </p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I would like to access my plugin’s class using a programmable filter. (import customPluginClass ...)</p>
<p class="MsoNormal">I have been searching through the mailing list how to achieve this but I can’t seem to find a working example.
</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a href="https://www.paraview.org/pipermail/paraview/2012-May/024855.html">https://www.paraview.org/pipermail/paraview/2012-May/024855.html</a></p>
<p class="MsoNormal">I tried following this example but it isn’t working. Wrap-python.cmake doesn’t exist in the current version of ParaView.
</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I found this macro “<span style="font-size:9.0pt;font-family:Consolas;color:#24292E;background:white">WRAP_PLUGIN_FOR_PYTHON”
</span></p>
<p class="MsoNormal"><a href="https://github.com/Kitware/ParaView/blob/master/CMake/ParaViewPlugins.cmake">https://github.com/Kitware/ParaView/blob/master/CMake/ParaViewPlugins.cmake</a></p>
<p class="MsoNormal">Using this macro, I’m getting a error “unknown cmake command Python_add_module”.
</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am compiling my custom plugin inside ParaView’s plugin folder</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Am I supposed to used this in my plugin cmakelist file to enable the python wrapping or is there another setting to activate ?  </p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you</p>
<p class="MsoNormal">Michal <o:p></o:p></p>
</div>
</body>
</html>