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.
By
Comments (19)
Comment policy
.
Thank you for your help.
Thanks & one more thing.
I was unchecking General and leaving everything else. It's quite simple really, thanks.
One more thing. In your posts above you wrote.
Whereas it can also be.
Where did you get the
handler?
.
I think it's from the above dropdown menus (edit, view, select, etc), can't remember exactly.
.
forum makes messages width lower and lower so I post it here
Open gif in new tab to view it in full resolution
.
This seems to work much better by disabling the apply changes. BTW, what is apply changes?
Before I post the code, how do you get those vals from spy++. I've tried but can't seem to find the same values you have.
Which window do you open after I open Spy++? Windows, processes or threads?
.
You need to press Log icon in Spy++ and then in Message Options window drag target icon on to SME window. In additional window I chose child windows only.
And the last one.. there will be lots and lots of messages, hundreds. You can right-click any message that you don't need to log (timer, mousemove, cursormove etc) and press Stop Logging Message.
"Decoded message parameters" is checked (in Output settings)
Headache
That thing would make you go cross-eyed..
I'm not getting the same codes as you. I'm getting 00031720 for the
.
Also what is
. When I click I get a
msg. Here (https://msdn.microsoft.com/en-us/library/windows/desktop/ms645607%28v=vs…) it has
the code.
I've "Decoded message parameters" is checked (in Output settings)
headache for sure
0x111 is WM_COMMAND
here's the list
Thanks.
Still not working.
Can you tell me. Do them codes work for all versions of max or do they need to be changed for each version?
Tried:
But individually evaluating each line works. Just not together. It will work though if I select the nodes myself with CTRL+A and then run the code.
.
It works fine in 2014, but I didn't test in any other version. I doubt that codes are differ from version to version.
ps. I just run it again and it actually fails some times and looks like it has something to do with the position of cursor (mostly if it's over SME window). Hope it helps
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
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.
`
Hi there,
try this:
Best,
Pixamoon
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.
.
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 thought it could be a focus issue. Makes sense, thanks.