Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2147
| From | "Christopher O. Young" <cy56@comcast.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | How can I set a dynamic global via a Locator |
| Date | 2011-05-07 10:22 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <iq36hf$dse$1@smc.vnet.net> (permalink) |
I just want to set the value of some complex points via dragging locators
around. Then I want to set the corresponding positions of 3D points, with z
values adjustable via sliders.
Do I have do everything from within a single DynamicModule to do this? I'd
also like to preserve their values between sessions. Is DynamicModule the
recommended way to do this also?
The Dynamic[p] on the outside doesn't get updated via the Dynamic[p] within
DynamicModule.
Dynamic[p]
DynamicModule[
{p = {0.5, 0.5}},
{
Graphics[
Locator[Dynamic[p]],
PlotRange -> 2
],
Dynamic[p]
}
]
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
How can I set a dynamic global via a Locator "Christopher O. Young" <cy56@comcast.net> - 2011-05-07 10:22 +0000
csiph-web