Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Manipulate evaluates repeatedly - how do i stop it

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91582] Re: Manipulate evaluates repeatedly - how do i stop it
  • From: Jeff Bryant <jmbryant12 at comcast.net>
  • Date: Thu, 28 Aug 2008 03:17:19 -0400 (EDT)
  • References: <g93b1o$kk2$1@smc.vnet.net>

Manipulate does not locally scope all symbols in its first argument. 
Only the control parameters are scoped locally. Manipulate tracks all 
symbols by default. So, if you have two Manipulates on the screen at the 
same time and they both contain the same global symbols, they will 
trigger each other causing constant update checks.

You can use the option TrackedSymbols:>{list of control parameters}

to make Manipulate only track the control parameters and not the global 
sysmbols in the Manipulate body.

Hope this helps.

-Jeff Bryant
Wolfram Research, Inc.

robert prince-wright wrote:
> Does anyone know how to stop two Manipulate objects from appearing to re-evaluate when they are both visble in a Notebook window? 
> 
> I have created a two Manipulate objects that display interactive graphics. Each one is contained in separate output cells which means, in principle, the variables used inside the Manipulates are Localized. The names of the sliders are the same in each Manipulate (but that shouldn't matter?). 
> 
> When one Manipulate is visible the RHS Bracket around the cell shows the normal state for a cell that has been evaluated, however, when you scroll and both are visible in the notebook window the cell brackets start to flash with double lines and yellow suggesting the cell is re-evaluating. 
> 
> Any ideas on how to stop this?
> 
> Robert 
> 
> 
> 
>       
> 


  • Prev by Date: can I have dynamic controls in Manipulate?
  • Next by Date: Re: Problem with NMinimize
  • Previous by thread: Manipulate evaluates repeatedly - how do i stop it
  • Next by thread: RE: Re: Manipulate evaluates repeatedly - how do i stop it