Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13132 > unrolled thread

Re: Making a palette to control dynamic variables?

Started byJohn Fultz <jfultz@wolfram.com>
First post2013-01-14 05:00 +0000
Last post2013-01-14 05:00 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Making a palette to control dynamic variables? John Fultz <jfultz@wolfram.com> - 2013-01-14 05:00 +0000

#13132 — Re: Making a palette to control dynamic variables?

FromJohn Fultz <jfultz@wolfram.com>
Date2013-01-14 05:00 +0000
SubjectRe: Making a palette to control dynamic variables?
Message-ID<kd03e3$6df$1@smc.vnet.net>
Paste the following into the help viewer search field:

tutorial/AdvancedDynamicFunctionality

and scroll down to the section on DynamicModule wormholes (it's at the very end of the document).

John Fultz
jfultz@wolfram.com
User Interface Group
Wolfram Research, Inc.



On Jan 11, 2013, at 9:25 PM, Brentt <brenttnewman@gmail.com> wrote:

>
> Hello,
>
> I'm trying to make a control interface for a graphic be in a separate
> window. I want those variables to dynamically interact with variables in
> the original session.
>
> I thought maybe opening up the palette within a dynamic module might work,
> but no such luck. Something is going on with the way variables are dealt
> with across notebooks I suppose, and I've been trying to find a workaround.
> I was thinking perhaps using NotebookGet and NotebookWrite, but, as far as
> I can tell,   I then have to print those in a cell in the Notebook to fetch
> the variables, which seems undesirable performance wise (also perhaps using
> CellPrint prints the dynamic variable in the parent notebook, but I'm not
> sure how to turn that into a variable which I can use.)
>
> Is there a way to do this nicely?
>
> This was my attempt at creating a graphic with a locator in a palette with
> the values to be used in furthur computations in the "parent" notebook.
>
> DynamicModule[{x = {0, 0}},
> nb = DocumentNotebook[{
>    Graphics[{Locator[Dynamic[x]]}, PlotRange -> ( {
>        {-1, 1},
>        {-1, 1}
>       } ), Frame -> True]
>    }];
> CreatePalette[nb];
>
> Dynamic@x
> ]
>
>
> But that x doesn't get the dynamically updated locator values from the
> palette.
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web