# Textslider in Makie

**URL:** <https://discourse.julialang.org/t/textslider-in-makie/42536>\
**Category:** New to Julia\
**Created:** [July 4, 2020, 8:10pm UTC](https://discourse.julialang.org/t/textslider-in-makie/42536 "2020-07-04T20:10:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Post date:** [July 4, 2020, 8:10pm UTC](https://discourse.julialang.org/t/textslider-in-makie/42536/1 "2020-07-04T20:10:17Z")

</div>

I am trying to control the radius of a sphere with a `textslider` in `Makie`, using the `GeometryTypes` module (I know that the module is deprecated, but it should still work.) Based on examples I found online, I wrote the following code. The initial radius of the sphere is set correctly, but I cannot get the radius to change.

```julia
using Makie, GeometryTypes

# Create a sphere with changing radius.
# Understand `lift` method

function setupCamera!(scene)
    cam = cam3d!(scene)
    eyepos = Makie.Vec3f0(5, 1.5, 0.5);
    lookat = Makie.Vec3f0(0., 0., 0.);
end

# ----------------------------------------------------------------------
marker_size = 0.0002
scene = Scene();
s1, radius = textslider(0.0f0:.1f0:0.5f0, "Radius", start = 0.1f0)
rad = Float32(to_value(radius))
Point3f0 = GeometryTypes.Point3f0

sphere = HyperSphere(Point3f0(0), 0.1f0)
positions = GeometryTypes.decompose(Point3f0, sphere)
AP.meshscatter!(scene, positions, markersize=0.002, color=:blue, transparency=false)

parent_scene = Scene(resolution=(700, 700))
vbox(hbox(s1, scene), parent=parent_scene)

setupCamera!(parent_scene)
display(parent_scene

```
