Discourse does not let me copy-paste the same answer, so please see my answer to the same question you asked in a different topic: Creating a custom 3D Slicer - #21 by cpinter
I’d encourage you to ask a question only once - we will see it just as well. Thank you.