Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    custom GvNodeWorld doesn't recieve DEL keybrd msg

    SDK Help
    0
    1
    161
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 02/07/2013 at 11:40, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:      
      Language(s) :

      ---------
      My plugin allocates a GvNodeMaster object and opens it via GvWorld::OpenDialog(). The dialog
      opens, nodes can be added, edited, connected, removed. But for example pressing the back-space
      key to delete the selected nodes does not work.

      virtual Bool Init(GeListNode* node) {
              if (!node || !super::Init(node)) return FALSE;
              if (!m_master) {
                  GvWorld* world = GvGetWorld();
                  if (world) {
                      m_master = world->AllocNodeMaster((BaseList2D* ) node);
                      if (!m_master) return FALSE;
                  }
              }
              return TRUE;
          }

      Bool OpenXPressoWindow() {
              if (!GeIsMainThread()) {
                  GePrint(__FUNCTION__": Invalid cross-thread call.");
                  return FALSE;
              }

      GvWorld* world = GvGetWorld();
              if (world && m_master) {
                  return world->OpenDialog(ID_XPRESSOEFFECTOR_OBJECT, m_master);
              }
              return FALSE;
          }

      Instead, it'll just remove the selected material, object, tag or whatever was selected before.
      Any ideas?

      Thanks,
      -Niklas

      1 Reply Last reply Reply Quote 0
      • First post
        Last post