View Full Version : Live selection - is it possible to...
Constrict 11-08-2010, 05:21 PM Hi all.
There is something that has bugged me since day one with the live selection tool. Too often when i want to paint select parts of my object, i manage to hit the axis and move the object instead. Or if i would like to add to an already existing selection, ill manage to move the selected surfaces instead of adding to them. Obviously its just a matter of undoing, but i would really love the option of turning off the axis as i start painting my polygons, and activating it as soon as i release the button. Is this possible to script in any way?
Cheers, Colin
|
|
Alt+D will toggle the axis
Cheers
Björn
Constrict
11-08-2010, 06:00 PM
Hi Bjørn, i am aware of the Alt+D. I was wondering if it was possible to script or make a plugin that automaticly Alt+Ds when i click the left mouse button in Live Selection mode, and then automaticaly activates it again when i release the mouse button. There is no point in displaying the axis while you are painting a selection. In fact its just in the way. :)
Cheers, Colin!
rustEdge
11-09-2010, 12:23 AM
You could write a custom script like this:
CallCommand(1016176);//show/hide axis
CallCommand(13321);//toggle active tool
And then just bind it to the spacebar.
Although you 'll prolly have to press alt+d once in a while...I'm still trying to look for the variable in COFFEE that tells you the current state of the axis visibility. No luck so far...
Edit:
I'm not sure if it's really possible to do it in COFFEE... I can just imagine it working if you can somehow override the behavior of the actual tool of if you can produce a tool plugin that extends the functionality of the current live selection tool.
Constrict
11-09-2010, 04:30 AM
Hi rustEdge! Thanks for looking in to this! Im looking for ways to speed up my workflow and and option like this will save me a lot of frustration :) anyway, thanks again :)
- Colin
Darter
11-09-2010, 12:59 PM
Not a complete solution but I'll throw it into the mix anyway...
This expression automatically toggles axis display based on the active state of the Live Selection tool. A full COFFEE-based solution would need a user area to enable polling of mouse input.
main(doc, op)
{
var bd = doc->GetActiveBaseDraw();
var activeTool = doc->GetActiveTool()->GetType();
if(activeTool == ID_MODELING_LIVESELECTION)
bd#BASEDRAW_DISPLAYFILTER_OBJECTHANDLES = FALSE;
else
bd#BASEDRAW_DISPLAYFILTER_OBJECTHANDLES = TRUE;
}
CGTalk Moderation
11-09-2010, 12:59 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.