Home › Forums › AR Sandbox Forum › Assign keys for Show DEM and Pause Topography
- This topic has 2 replies, 2 voices, and was last updated 1 year, 7 months ago by Sean Robinson.
-
AuthorPosts
-
March 31, 2023 at 11:06 am #2538CormacParticipant
I use Show DEM tool as a way to take the color out of the AR sandbox projection and talk about black and white topographic maps. I’m wondering if there is a way to assign this to a hotkey. The issue with Show DEM is that once I assign it, it asks me to open a file – I literally just exit that prompt and then it works to switch to black and white. There may be a more efficient way to program this function.
In addition, I’m wondering how to code “pause topography”
Thanks all – this forum has been very helpful so far!
March 31, 2023 at 2:36 pm #2539Sean RobinsonParticipantWe switch between full-color and white maps for the same reason, using the control pipe. This Switch texture water to lava post describes how to change colors. For white, create a .cpt file with the following values.
-25.00 255 255 255
25.0 255 255 255AFAICT, “Pause Topography” is not available for assignment to a key via the configuration files, but I could be wrong. If you are comfortable patching C++ source, the following diff will add a “pauseUpdates” control pipe command. This will toggle screen updates using the same algortihm the assigned key uses.
--- a/Config.h +++ b/Config.h @@ -1335,6 +1337,9 @@ void Sandbox::frame(void) { } else { std::cerr << "Wrong number of arguments for rainStrength control pipe command" << std::endl; } + } else if (isToken(tokens[0], "pauseUpdates")) { + pauseUpdates = !pauseUpdates; + pauseUpdatesToggle->setToggle(pauseUpdates); } else { std::cerr << "Unrecognized control pipe command " << tokens[0] << std::endl; }
- This reply was modified 1 year, 7 months ago by Sean Robinson. Reason: fix link to colormap help
April 5, 2023 at 10:16 am #2543Sean RobinsonParticipantSorry, the patch I posted has a mistake. (The dangers of hand-editing a patch.) The following should cleanly apply.
--- a/Sandbox.cpp +++ b/Sandbox.cpp @@ -1335,6 +1335,9 @@ void Sandbox::frame(void) { } else { std::cerr << "Wrong number of arguments for rainStrength control pipe command" << std::endl; } + } else if (isToken(tokens[0], "pauseUpdates")) { + pauseUpdates = !pauseUpdates; + pauseUpdatesToggle->setToggle(pauseUpdates); } else { std::cerr << "Unrecognized control pipe command " << tokens[0] << std::endl; }
-
AuthorPosts
- You must be logged in to reply to this topic.