# SMTK - Model not rendering - Could not toggle visibility

**URL:** https://discourse.kitware.com/t/smtk-model-not-rendering-could-not-toggle-visibility/148
**Category:** Using SMTK
**Created:** [August 22, 2018, 8:03pm UTC](https://discourse.kitware.com/t/smtk-model-not-rendering-could-not-toggle-visibility/148 "2018-08-22T20:03:24Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![chart3388](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/c/82dd89/32.png) [@chart3388](https://discourse.kitware.com/u/chart3388)
#### Post date: [August 22, 2018, 8:03pm UTC](https://discourse.kitware.com/t/smtk-model-not-rendering-could-not-toggle-visibility/148/1 "2018-08-22T20:03:25Z")

</div>

Hi All,

Built CMB 6 off of [this commit](https://gitlab.kitware.com/cmb/cmb/commit/9d95e0c07b6802176294760e36a4ec53043f70a4) and SMTK off [this commit](https://gitlab.kitware.com/cmb/smtk/commit/1bb66575011230d68270f838baebb49c64f0a69e) and I am able to get the operations now to show up in the resource panel. But when I use an operation, like smtk::bridge::discrete::ImportOperation via the operations panel I can import an obj or an STL but it does not display in the rendering window. The “eye” icon is grayed out and if you click on it it tosses this error:

```auto
SMTK: ERROR: /opt/dev/cmb-6.0.0/thirdparty/smtk/smtk/extension/qt/qtDescriptivePhraseModel.cxx, line 679: Could not toggle visibility of "test.stl (/opt/models)"

```

One thing I notice is if I use File -\> Open and load the stl using the same operation SMTK importer for Solids into smtk::bridge::discrete::Resource it does render and display correctly in both the Resources menu and in the render window.

This happens for other Operations as well.

Thanks

---

<div class="post-metadata">

### Author: ![chart3388](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/c/82dd89/32.png) [@chart3388](https://discourse.kitware.com/u/chart3388)
#### Post date: [August 22, 2018, 8:13pm UTC](https://discourse.kitware.com/t/smtk-model-not-rendering-could-not-toggle-visibility/148/2 "2018-08-22T20:13:46Z")

</div>

One other observation. Using the Operations panel it appears to bypass the Properties panel and I do not have to hit “apply” in the properties panel but if I use File -\> Open or File -\> New Resource for instance I have to hit the apply button.

---

<div class="post-metadata">

### Author: ![tj.corona](https://discourse.kitware.com/user_avatar/discourse.kitware.com/tj.corona/32/35_2.png) [@tj.corona](https://discourse.kitware.com/u/tj.corona)
#### Post date: [August 22, 2018, 8:18pm UTC](https://discourse.kitware.com/t/smtk-model-not-rendering-could-not-toggle-visibility/148/3 "2018-08-22T20:18:16Z")

</div>

Hi Corey,

I am actively working on this issue. I can let you know when I have a fix.

Sincerely,  
T.J.

---

<div class="post-metadata">

### Author: ![tj.corona](https://discourse.kitware.com/user_avatar/discourse.kitware.com/tj.corona/32/35_2.png) [@tj.corona](https://discourse.kitware.com/u/tj.corona)
#### Post date: [September 11, 2018, 3:25pm UTC](https://discourse.kitware.com/t/smtk-model-not-rendering-could-not-toggle-visibility/148/4 "2018-09-11T15:25:09Z")

</div>

This issue should be addressed in SMTK’s master branch with the inclusion of [this MR](https://gitlab.kitware.com/cmb/smtk/merge_requests/1241). Please let me know if this solves the issue you described!

---

<div class="post-metadata">

### Author: ![chart3388](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/c/82dd89/32.png) [@chart3388](https://discourse.kitware.com/u/chart3388)
#### Post date: [September 11, 2018, 6:13pm UTC](https://discourse.kitware.com/t/smtk-model-not-rendering-could-not-toggle-visibility/148/5 "2018-09-11T18:13:06Z")

</div>

Hi TJ,

While not intuitive it does resolve the issue. I am able to use a Operation like smtk::session::discrete::ImportOperation and it loads successfully into the Resources window but still does not render. When I click on the item I imported in the resource panel I can then click apply in the Properties panel and it displays in the render window.

---

<div class="post-metadata">

### Author: ![tj.corona](https://discourse.kitware.com/user_avatar/discourse.kitware.com/tj.corona/32/35_2.png) [@tj.corona](https://discourse.kitware.com/u/tj.corona)
#### Post date: [September 11, 2018, 6:16pm UTC](https://discourse.kitware.com/t/smtk-model-not-rendering-could-not-toggle-visibility/148/6 "2018-09-11T18:16:33Z")

</div>

> While not intuitive it does resolve the issue.

The fix does not address the myriad Apply buttons and their inconsistent use. Rather, it ensures that resources entering ModelBuilder via an operation (as opposed to the File menu) render correctly.

---

<div class="post-metadata">

### Author: ![chart3388](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/c/82dd89/32.png) [@chart3388](https://discourse.kitware.com/u/chart3388)
#### Post date: [September 11, 2018, 6:20pm UTC](https://discourse.kitware.com/t/smtk-model-not-rendering-could-not-toggle-visibility/148/7 "2018-09-11T18:20:09Z")

</div>

Then I’d say book it. Done. Thanks TJ
