# Modelmaker in script

**URL:** https://discourse.slicer.org/t/modelmaker-in-script/367
**Category:** Support
**Created:** [May 24, 2017, 10:04am UTC](https://discourse.slicer.org/t/modelmaker-in-script/367 "2017-05-24T10:04:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![brhoom](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/brhoom/32/1228_2.png) [@brhoom](https://discourse.slicer.org/u/brhoom)
#### Post date: [May 24, 2017, 10:04am UTC](https://discourse.slicer.org/t/modelmaker-in-script/367/1 "2017-05-24T10:04:51Z")

</div>

Dear all,  
I am trying to generate a model from a label then load it to the 3D view. I used the CLI Modelmaker but it does not work:  
`~/Slicer-4.6.2/Slicer --launch ~/Slicer-4.6.2/lib/Slicer-4.6/cli-modules/ModelMaker ./label.nrrd ./model.stl`  
What about if the label has multiple colors, how can I generate multiple models from such label.

It would be nice if you update the wiki to include such information.

Thanks!  
Ibraheem

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [May 24, 2017, 11:41am UTC](https://discourse.slicer.org/t/modelmaker-in-script/367/2 "2017-05-24T11:41:19Z")

</div>

In general, I would recommend using a segmentation node module for displaying segments in both 2D and 3D:  
[https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Create\_a\_segmentation\_from\_a\_labelmap\_volume\_and\_display\_in\_3D](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Create_a_segmentation_from_a_labelmap_volume_and_display_in_3D)

---

<div class="post-metadata">

### Author: ![brhoom](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/brhoom/32/1228_2.png) [@brhoom](https://discourse.slicer.org/u/brhoom)
#### Post date: [May 24, 2017, 2:00pm UTC](https://discourse.slicer.org/t/modelmaker-in-script/367/3 "2017-05-24T14:00:03Z")

</div>

Thanks Andras, this is really helpful. I just like to comment that it works only with the nightly build.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [May 24, 2017, 2:30pm UTC](https://discourse.slicer.org/t/modelmaker-in-script/367/4 "2017-05-24T14:30:09Z")

</div>

Yes. The latest stable version is very old.
