# Resolution of Sphere Glyph in pvpython

**URL:** https://discourse.paraview.org/t/resolution-of-sphere-glyph-in-pvpython/7785
**Category:** ParaView Support
**Tags:** python
**Created:** [August 8, 2021, 11:43am UTC](https://discourse.paraview.org/t/resolution-of-sphere-glyph-in-pvpython/7785 "2021-08-08T11:43:00Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Roman](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@Roman](https://discourse.paraview.org/u/Roman)
#### Post date: [August 8, 2021, 11:43am UTC](https://discourse.paraview.org/t/resolution-of-sphere-glyph-in-pvpython/7785/1 "2021-08-08T11:43:00Z")

</div>

How can I change `Theta Resolution` and `Phi Resolution` of Sphere Glyphs in pypython? When I change them in the GUI and check the Python trace, these attributes don’t show up.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 9, 2021, 8:40am UTC](https://discourse.paraview.org/t/resolution-of-sphere-glyph-in-pvpython/7785/2 "2021-08-09T08:40:01Z")

</div>

Here is what the trace provide:

```auto

# Properties modified on sphere1
sphere1.ThetaResolution = 80
sphere1.PhiResolution = 80

```

---

<div class="post-metadata">

### Author: ![Roman](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@Roman](https://discourse.paraview.org/u/Roman)
#### Post date: [August 9, 2021, 9:03am UTC](https://discourse.paraview.org/t/resolution-of-sphere-glyph-in-pvpython/7785/3 "2021-08-09T09:03:48Z")

</div>

Thanks for your response. Unfortunately that doesn’t seem to work. Note that I’m writing about Sphere glyphs, not a Sphere source.

```auto
glyph1 = Glyph()
glyph1.GlyphType = 'Sphere'
glyph1.ThetaResolution = 80 # AttributeError: Attribute ThetaResolution does not exist.
glyph1.PhiResolution = 80

```

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 9, 2021, 9:16am UTC](https://discourse.paraview.org/t/resolution-of-sphere-glyph-in-pvpython/7785/4 "2021-08-09T09:16:38Z")

</div>

```auto
glyph1.GlyphType.ThetaResolution = 80 
glyph1.GlyphType.PhiResolution = 80

```

Should do the trick. There is indeed a trace bug here.

---

<div class="post-metadata">

### Author: ![Roman](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@Roman](https://discourse.paraview.org/u/Roman)
#### Post date: [August 9, 2021, 9:20am UTC](https://discourse.paraview.org/t/resolution-of-sphere-glyph-in-pvpython/7785/5 "2021-08-09T09:20:45Z")

</div>

That’s it! Thank you for your help.
