Is it possible to shift focus to a layer?
Posted: Wed Aug 13, 2008 6:09 pm
Vern (most likely, but anyone else can jump in),
Is it possible for a script to shift focus to a specific layer? IOW, I want to have a certain layer highlighted (so actions performed are done on that layer) and be able to then run a script that selects another layer for actions on that new layer.
What is happening is that I am doing bone manipulations and then I need to, say, do some vector stuff on another layer. After I'm finished with that layer I need to go back to my master bone layer. If I don't use the mouse to select this layer then naturally any commands (such as rotate) will apply to the vector layer instead, so I select and then rotate bones. But... then I need to go to another layer (perhaps a switch layer) and so forth. And this happens a LOT -- back and forth, back and forth and I'm spending too much time mousing around all the dozens of different layers.
Since I can identify my master bone layer by name I was hoping that a script could provide the focus and select that layer. If so, I can assign a hot key to that script and put that on a button on my shuttle and with one button press I'm back to bone manipulations (I might even assign a button or two to the other switch and vector layers I need the most). I will need to only select the bone layer of the current hierarchy I'm in, but that's another issue (I assume, since you can step through all the layers in a project, there is also a way to only step through layers in a particular master layer -- I just haven't tried this yet).
I know how to select a layer in a script to actively do something to it in the script -- what I don't know is how to shift the focus so it's selected for subsequent mousing... assuming this is possible.
Is it possible for a script to shift focus to a specific layer? IOW, I want to have a certain layer highlighted (so actions performed are done on that layer) and be able to then run a script that selects another layer for actions on that new layer.
What is happening is that I am doing bone manipulations and then I need to, say, do some vector stuff on another layer. After I'm finished with that layer I need to go back to my master bone layer. If I don't use the mouse to select this layer then naturally any commands (such as rotate) will apply to the vector layer instead, so I select and then rotate bones. But... then I need to go to another layer (perhaps a switch layer) and so forth. And this happens a LOT -- back and forth, back and forth and I'm spending too much time mousing around all the dozens of different layers.
Since I can identify my master bone layer by name I was hoping that a script could provide the focus and select that layer. If so, I can assign a hot key to that script and put that on a button on my shuttle and with one button press I'm back to bone manipulations (I might even assign a button or two to the other switch and vector layers I need the most). I will need to only select the bone layer of the current hierarchy I'm in, but that's another issue (I assume, since you can step through all the layers in a project, there is also a way to only step through layers in a particular master layer -- I just haven't tried this yet).
I know how to select a layer in a script to actively do something to it in the script -- what I don't know is how to shift the focus so it's selected for subsequent mousing... assuming this is possible.