Message 1 of 3
Toggle between tools?
Not applicable
09-24-2015
03:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, im trying to do something very simple, i want to bind hotkeys for several things. Among them the ability to toggle between marquee modes, selection modes, so on and so forth. Ive had luck with simple things as toggle between orintation modes. But now im trying to do one to toggle between selection constratins.
I want to be able to quickly turn off/on the angle constraint without ever going up to the little drop down menu. So far i got this bit of code, which works, except im not sure why im getting a syntax error.
string $angleConstrain = `dR_DoCmd("selConstraintAngle")`;
if ($angleConstrain == "0");
dR_DoCmd("selConstraintAngle");
else
dR_DoCmd("selConstraintOff");