Navigation

    • Register
    • Login
        No matches found
    • Search
    1. Home
    2. m_tamura
    m_tamura

    Makoto TAMURA

    @m_tamura

    0
    Reputation
    4
    Posts
    97
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Website makototamura.com/ Location Japan

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    m_tamura Follow

    Best posts made by m_tamura

    This user hasn't posted anything yet.

    Latest 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 •
    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://plugincafe.maxon.net/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 •
    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 •
    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 •