# How to through the script call "Colors" plug-in modules and the API?

**URL:** <https://discourse.slicer.org/t/how-to-through-the-script-call-colors-plug-in-modules-and-the-api/16897>\
**Category:** Development\
**Created:** [April 1, 2021, 5:55am UTC](https://discourse.slicer.org/t/how-to-through-the-script-call-colors-plug-in-modules-and-the-api/16897 "2021-04-01T05:55:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RanChenSignIn](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ranchensignin/32/9634_2.png) [@RanChenSignIn](https://discourse.slicer.org/u/RanChenSignIn)\
**Post date:** [April 1, 2021, 5:55am UTC](https://discourse.slicer.org/t/how-to-through-the-script-call-colors-plug-in-modules-and-the-api/16897/1 "2021-04-01T05:55:45Z")

</div>

Operating system:  
Slicer version:  
Expected behavior:  
Actual behavior:

How to through the script call “Colors” plug-in modules and the API ?

Anyone can give me some advice?  
thank you!

---

<div class="post-metadata">

**Author:** ![RanChenSignIn](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ranchensignin/32/9634_2.png) [@RanChenSignIn](https://discourse.slicer.org/u/RanChenSignIn)\
**Post date:** [April 2, 2021, 7:43am UTC](https://discourse.slicer.org/t/how-to-through-the-script-call-colors-plug-in-modules-and-the-api/16897/2 "2021-04-02T07:43:00Z")

</div>

Who can give me some advice

---

<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:** [April 3, 2021, 1:19am UTC](https://discourse.slicer.org/t/how-to-through-the-script-call-colors-plug-in-modules-and-the-api/16897/3 "2021-04-03T01:19:46Z")

</div>

Can you describe what you would like to achieve?

---

<div class="post-metadata">

**Author:** ![RanChenSignIn](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ranchensignin/32/9634_2.png) [@RanChenSignIn](https://discourse.slicer.org/u/RanChenSignIn)\
**Post date:** [April 9, 2021, 8:32am UTC](https://discourse.slicer.org/t/how-to-through-the-script-call-colors-plug-in-modules-and-the-api/16897/4 "2021-04-09T08:32:48Z")

</div>

ok,i want to implement the following view effect, but do it by scripting and setting its properties.  
so please give me some advice

 ![企业微信截图_1617956454701](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/4/d4db32f2b14f8289d16886015fbebe5f6323d1ad.png)  
 ![企业微信截图_16179565494242](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/3/f3bcc84ee9bf2817cc43cf4472923785040517d9.jpeg)

---

<div class="post-metadata">

**Author:** ![RanChenSignIn](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ranchensignin/32/9634_2.png) [@RanChenSignIn](https://discourse.slicer.org/u/RanChenSignIn)\
**Post date:** [April 13, 2021, 2:17am UTC](https://discourse.slicer.org/t/how-to-through-the-script-call-colors-plug-in-modules-and-the-api/16897/5 "2021-04-13T02:17:46Z")

</div>

@lassoan could give me some adice?

---

<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:** [April 13, 2021, 12:58pm UTC](https://discourse.slicer.org/t/how-to-through-the-script-call-colors-plug-in-modules-and-the-api/16897/6 "2021-04-13T12:58:51Z")

</div>

See these examples in the script repository:

- [Set up colormap display in 3D views](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Display_color_scalar_bar_in_3D_views)
- [Set up colormap display in slice views](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Show_scalar_bar_.28DataProbe.29)

---

<div class="post-metadata">

**Author:** ![RanChenSignIn](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ranchensignin/32/9634_2.png) [@RanChenSignIn](https://discourse.slicer.org/u/RanChenSignIn)\
**Post date:** [April 14, 2021, 1:50am UTC](https://discourse.slicer.org/t/how-to-through-the-script-call-colors-plug-in-modules-and-the-api/16897/7 "2021-04-14T01:50:08Z")

</div>

OK, thank you very much!
