Press Select All in SME.
In the SME menu, is there a way to press.
Select>Select All
Using:
actionMan.executeAction 369891408 "40063" /* SME: Select All */
is not really what Im after as it requires the SME to be open.
Basically the fn I want overall is to, select the nodes and then hide unused nodes.
Thanks.
Comments
I've noticed an error with
I've noticed an error with this code. Well not an error but it doesn't press the hide unused slots. I think the issue is with the
nodeViewImp.SelectAll()
part which is the built in SME MXS way of doing it. But can figure out why.PS.
Pixamoon, your code for selecting works but this doesn't.
Perhaps someone could shed some light on this issue?
.
Can you test if it works for you?
Cheers all
I have spy but never really used it.
I'll test these 2 out tomorrow. Hopefully they work when SME isin't open. Both look good.
I'll report back then.
.
select the nodes and then hide unused nodes.
do you mean hide unused nodeslots of selected nodes?
Yes,
I can already press the layout all button on the toolbar through maxscript but not the menu where select all is.
.
You can use Spy++ to check what messages are used to toggle various SME commands.
otherwise you need to set view in focus before calling actionMan.executeAction
Cool. This works. Never
Cool.
This works. Never thought it could be a focus issue. Makes sense, thanks.
`
Hi there,
try this:
Best,
Pixamoon
Ah man! I should of thought
Ah man! I should of thought of that method and me already knew it! You're still a lifesaver! Thanks.
EDIT OR, which doesn't seem to work as well as your method.