2 Replies Latest reply: Dec 16, 2010 1:45 AM by dheeraj_c RSS

    Why there is no callback for menu commands when Project panel is in focus?

    dheeraj_c Community Member

      Hi,

          Can anyone tell me why there is no callback in CommandHook() for any command (for example, Close project/New project) when Project panel is having the focus?

       

      I have registered for AEGP_Command_ALL as shown below, but still there is no callback.

       

      PT_ETX(i_sp.REGISTER_SUITE()->AEGP_RegisterCommandHook(i_pluginID,
                                                                      AEGP_HP_BeforeAE,
                                                                      AEGP_Command_ALL,
                                                                      &AEU_MyClass::S_CommandHook,
                                                                      (AEGP_CommandRefcon)(this)));

       

      If any other panel is in focus, CommandHook() is called. Why only Project panel?

       

      Thanks & Regards,

      Dheeraj.

        • 1. Re: Why there is no callback for menu commands when Project panel is in focus?
          Mike Basil Community Member

          PT_ETX(i_sp.REGISTER_SUITE()->AEGP_RegisterCommandHook(i_pluginID,

                                                                           AEGP_HP_BeforeAE,

                                                                           AEGP_Command_ALL,

                                                                           &AEU_MyClass::S_CommandHook,

                                                                           (AEGP_CommandRefcon)(this)));

             

          If any other panel is in focus, CommandHook() is called. Why only Project panel?

          >

          I dont know any way of telling when particular panel is in focus, but

          others should work.

          Are you sure &AEU_MyClass::S_CommandHook is a static function? by

          REGISTER_SUITE() do you mean RegisterSuite5()?

           

          greets

          mike

          • 2. Re: Why there is no callback for menu commands when Project panel is in focus?
            dheeraj_c Community Member

            Thanks Mike for replying.

             

            Yes. AEU_MyClass::S_CommandHook is a static function.

             

            Yes I meant RegisterSuite5() only.

             

            regards,

            dheeraj