Hi everyone,
I am making an app which shows a shaft and unbalanced masses coming off it with varying radii and locations along the length of the shaft: ![enter image description here](http://community.wolfram.com//c/portal/getImageAttachment?filename=3063Shaft.png&userId=1074296)
I need the user to be able to select between ViewPoint -> Right and ViewPoint -> Front so that they can set it up easily. I have set ViewPoint to a variable (viewPoint) inside Graphics3D and used that variable to populate a SetterBar in the usual way:
Manipulate[
Graphics3D[
Cylinder[{{0, 0, 0}, {0 + shaftLength, 0, 0}}, shaftRadius],
ViewPoint -> viewPoint,
ImageSize -> {500, 500},
PlotRange -> {{0, shaftLength}, {-0.1, 0.1}, {-0.1, 0.1}},
Boxed -> False
],
{viewPoint, {Right, Front}},
{{shaftLength, 1}, 0.1, 1},
{{shaftRadius, 0.01}, 0.001, 0.05}
]
This works perfectly until I manually adjust the viewpoint with the mouse - which I also need the user to be able to do - and then the buttons stop responding.
Is this a bug, or can someone spot a mistake in my approach?
Thanks,
Si