This is just a question about WL design and Dynamic scoping. I have a work-around--I am just curious and trying to teach myself something about wormholes.
I am assuming that Manipulate wraps its guts inside a DynamicModule--or wraps DynamicModule around its guts.
Suppose I'd like to to let one of the control variables slip through a wormhole to an enclosing DynamicModule.
Here is a prototype that doesn't work:
DynamicModule[{manipulateLocation},
GraphicsRow[
{
Manipulate[
Graphics[{LightBlue, Disk[]}],
{{manipulateLocation, {0, 0}}, Locator},
Paneled -> False, InheritScope -> True], (*InheritScope is not an Option to Manipulate, it is just illustrative here*)
Dynamic[
ContourPlot[
manipulateLocation.{x - y^2, Cos[x y]}, {x, -Pi, Pi}, {y, -Pi,
Pi}]],
Dynamic[
Plot3D[manipulateLocation.{x - y^2, Cos[x y]}, {x, -Pi,
Pi}, {y, -Pi, Pi}]]
},
ImageSize -> Large
]
]
Again, there is a simple workaround. I am just curious about why the option isn't or shouldn't be there.