Re: [C++ Question] How to check Item in Animation Editor menu ?

Date : Thu, 20 Oct 2005 01:45:08 +0900
To : <XSI(at)Softimage.COM>
From : "Andrea Padovan" <xsi(at)fastwebnet.it>
Subject : Re: [C++ Question] How to check Item in Animation Editor menu ?
Hi Sean,
I have an other question.
Is also possible to set a shortkey for Fcurve Editor custom command that lie in menu ?
----- Original Message -----
Sent: Thursday, October 20, 2005 1:22 AM
Subject: Re: [C++ Question] How to check Item in Animation Editor menu ?

Thank you very much Sean,
 
honestly I didn't know sorry.
But what I want to do is to Invoke command "Position Only", "Position X Only", "Position Y Only", "Position Z Only" or rotation or scale filter
running a script, becouse I want to make a float PPG where the users can select the filter pushing a button, in this way they could write little
custom script  that calls a particular set of filter.
For example, how I could active PosX , PosY and all rotation filter with only one shortkey ? Is it possible ?
This is exactly wath I want to do.
 
Thanks so much.
 
Andrea
 
----- Original Message -----
Sent: Wednesday, October 19, 2005 11:00 PM
Subject: RE: [C++ Question] How to check Item in Animation Editor menu ?

If I understand you correctly all you want to do is assign a shortcut key to those menu items?  If so then why not just edit the keymapping and assign a key binding to them?  From the top file menu choose "Keyboard Mapping" and then in the "Group" list box (on the left) select "Scene Explorer" (these menu commands live in the explorer mapping since they are part of the explorer tree inside the animation editor).  Then in the Command list box (on the right) scroll down and find "Position Only", "Position X Only", "Position Y Only", "Position Z Only" and click and drag the one you want onto a key in the key diagram below.  You'll be prompted for a new key mapping name if you're trying to edit one of the system keymaps.
 
Then with your mouse over the explorer tree view (inside the Animation Editor) press that key you assigned and the filter will change.
 
Sean


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Andrea Padovan
Posted At: Tuesday, October 18, 2005 11:41 PM
Posted To: xsi
Conversation: [C++ Question] How to check Item in Animation Editor menu ?
Subject: [C++ Question] How to check Item in Animation Editor menu ?

Hi to all,
 
I'm going mad for to do a simple thing, but I don't know if is possible.
In XSI isn't possible to invoke a command that lives in FCurve Editor menu
with a shortkey...
 
I'm speaking about these menus:
View -> Position -> (All,X,Y,Z)
View -> Rotation -> (All,X,Y,Z)
View -> Scaling -> (All,X,Y,Z)
 
Super useful when you working with motion capture data for to filter function curves, but
also very frustrating when you have to use these filter calling from menu a lot of times in a day...
 
I know! It could be danger, but I want to understand if is possible or not.
So, I made a plug-in that when invoked, returns all child windows inside XSI.
It works, I'm able to get all windows and also menus... so I'm also able to get
handler of View menu of FCurve Editor.
Now, I have my nice pointer to "View menu of FCurve Editor" like an HWND pointer
because I'm using EnumChildWindows function, I tried to change name of menu for
to be sure about the correct handler with "SetWindowText();" it works and it's correct.
Fantastic! I thought, now I need only to get a list of items inside menu, but here I
found a wall, I don't know how is possible to get a list of handlers inside menu.
I want to get this list for to have a possibility to check a mune item and invoke a command.
 
I'M NOT A WINDOWS API PROGRAMMER, PLEASE REMEMBER IT.
Maybe is very easy, maybe is impossible, I' dont know.
 
I want to try to use GetMenuItemCount(), but I have an HWND handler, how I can convert it to a HMENU handler ?
I tried this GetMenuItemCount((HMENU)hWnd); where hWnd is a handler to "View menu of FCurve Editor" but it
always return "-1". Sorry, I don't know if in this way I'm converting an HWND to HMENU in correct way.
So maybe only a problem of conversion pointer type ?
Or Softimage put a wall for to enter in the menus ?
 
I already done a plug-in that filter all animated object in selection and unpdate FCurve editor, but with
1000 Fcurve, it isn't acceptable.
 
Could you help me ?
 
Thanks a lot.
 
アンドレア パドヴァン
Andrea Padovan
 
Tool Designer (at)
SEGA CORPORATION
AM R&D Dept.#1 Arcade Team
AM R&D Div.
http://www.sega.co.jp/
Blr. Founder
http://www.borderliner.it
Actually located in Tokyo Japan

Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.