Hi surferdude,
re:
> For example, If I click a hotkey it will trigger the bounding box center, the next click will make it a
> normal move/scale/ command. So you can choose between these commands while using only one shortcut.
Yes, in v4 it's possible to set up a shortcut key that will do that. Here is what you would put for the command part of the shortcut keys:
script: /* Scale, switch between center and regular */ var didcenter = false; try { didcenter = moi.command.getOption( 'scale_center' ); } catch(e){} if ( didcenter ) { moi.command.execCommand( 'Scale' ); } else { moi.command.execCommand( 'Scale BoundingBoxCenter' ); } moi.command.setOption( 'scale_center', !didcenter );
script: /* Move, switch between center and regular */ var didcenter = false; try { didcenter = moi.command.getOption( 'move_center' ); } catch(e){} if ( didcenter ) { moi.command.execCommand( 'Move' ); } else { moi.command.execCommand( 'Move BoundingBoxCenter' ); } moi.command.setOption( 'move_center', !didcenter );
- Michael
|