Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    1. Maxon Developers Forum
    2. m_tamura
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by m_tamura

    • RE: Handling direction of the normal tag

      Hi Riccardo-san,

      Thank you for your very helpful!!
      And sorry late reply.

      Thanks to my understanding of what I should do.
      I will add code to solve it from now on and report again. It may take a while, but if I do not understand, I may post a question again.

      However, your advice was very helpful. Thanks a million!

      Makoto Tamura

      posted in Cinema 4D SDK
      m_tamuraM
      m_tamura
    • Handling direction of the normal tag

      I trying to make the axis tool in my plugin.

      After moving or rotating the object, use the inverse matrix to return each point to its original position.

      My method almost similar to this topic
      https://developers.maxon.net/forum/topic/6302/6696_axis-position/7

      Basically, move and rotation are working well.
      But, if the object has a normal tag, normal directions are not back to correct.

      I have not enough knowledge about handling the orientation of normals, so probably I overlook something.

      Would you have any solution?

      Best regards,
      Makoto Tamura

      posted in Cinema 4D SDK r20 python
      m_tamuraM
      m_tamura
    • RE: How access to the listview from videopost

      Thank you, Sebastian.

      Your reply clearly shows what I should learn.

      I need a little time to understand, but I am working on it and I made a little progress.

      Cheers
      Makoto

      posted in Cinema 4D SDK
      m_tamuraM
      m_tamura
    • How access to the listview from videopost

      Cinema4D R20;
      Windows 10;
      C++;

      Hi all,

      I did add the simple listview custom GUI on the my VideoPost plugin.
      Listview is the same as the SDK example.

      Also, I have listview displayed in using GetDDescription in the VideoPost.

      And I'd like to access this list of data from the VideoPost function.
      e.g, GetItem or GetItemCount etc from the listview1 or listvew2.
      But I still do not know how to do it.

      If I want to do get data of the listview from VideoPost, what kind of procedure should I access?
      alt text

      GetDDescription in my VideoPost

      ///// inside My VideoPostPlugin GetDDescription //////////////
      ///// ListView ///////////////////////////////////////////////
      
      cid = DescLevel(MY_VIDEOPOST_TAB, DTYPE_GROUP, 0);
      if (!singleid || cid.IsPartOf(*singleid, nullptr)) // important to check for speedup c4d!
      {
          BaseContainer secondgroup = GetCustomDataTypeDefault(DTYPE_GROUP);
          secondgroup.SetString(DESC_NAME, "Test Tab"_s);
          if (!description->SetParameter(cid, secondgroup, DescLevel(0)))
              return true;
      }
      
      DescID cid_Tree = DescLevel(IDS_MY_CUSTOMGUI, ID_MY_CUSTOMGUI_CUSTOMDATATYPE, 0);
      if (!singleid || cid.IsPartOf(*singleid, nullptr))	// important to check for speedup c4d!
      {
          BaseContainer bc = GetCustomDataTypeDefault(ID_MY_CUSTOMGUI_CUSTOMDATATYPE);
          bc.GetCustomDataType(DESC_CUSTOMGUI, ID_MY_CUSTOMGUI_CUSTOMDATATYPE);
          if (!description->SetParameter(cid_Tree, bc, DescLevel(MY_VIDEOPOST_TAB))) return TRUE;
      }
      

      Any opinion will be helpful.
      Best Regards,
      Makoto,

      posted in Cinema 4D SDK r20 sdk
      m_tamuraM
      m_tamura