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

    question about Team Render

    Cinema 4D SDK
    3
    4
    1.3k
    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.
    • Z
      zhhm156
      last edited by r_gigante

      I am making a Team Render plugin in LAN,And i successed to use the API "GetAllMachineUuids" collecting other machine's Uid,but then it was failed to verify these machines using "VerifyServerOnClient",I don't know where the error gave rise to this problem on my code ,Could anyone show me the example of connection in Team Render?

      my part of code:

      if (TeamRender::GetInstance()->NetRender != nullptr)
      {
      	maxon::BaseArray<C4DUuid> MachineArrayUuids;
      	TeamRender::GetInstance()->NetRender->GetAllMachineUuids(MachineArrayUuids, MACHINELIST_ONLINE, VERIFICATIONBIT::VERIFICATIONBIT_SHARED, false, true);
      	for(int i = 0;i < MachineArrayUuids.GetCount(); i++)
      	{
      		Machine* _machine = TeamRender::GetInstance()->NetRender->FindMachine(MachineArrayUuids[i], MACHINELIST_ONLINE, VERIFICATIONBIT_VERIFIED);
      		TeamRender::GetInstance()->NetRender->VerifyServerOnClient(THREADMODE_ASYNC, MachineArrayUuids[i],"175",false,false,30000);
      		GePrint(_machine->GetName());
      		machine = _machine->GetNext();
      	}
      }
      
      1 Reply Last reply Reply Quote 0
      • M
        mp5gosu
        last edited by

        Hello and welcome to plugincafe.
        First off, I have some points regarding your post:
        1.) Your post belongs into the category "Cinema 4D Development"
        2.) Please format your code, you find a brief summary of how to do that (and other things) here.
        3.) Please add tags to your post. More info here.
        4.) Consider setting your topic to "question". You can do this by selecting "Ask as question" on the bottom right Thread tols dropdown.

        All these points help others to search and use this forum more efficiently.

        @Topic:
        I've never worked with TR in C++, so I may be of little help here.
        Just a guess, but your line FindMachine seems to filter only already verified machines? Shouldn't be VERIFICATIONBIT set to VERIFICATIONBIT_NONE instead of VERIFICATIONBIT_VERIFIED?
        Do you get any error messages?

        1 Reply Last reply Reply Quote 0
        • r_giganteR
          r_gigante
          last edited by

          Hi zhhm156, thanks for writing us.

          First of all in order to be helpful it would be really useful if you could provide an idea on what's your plugin is trying to achieve and describe a little bit better the workflow you've in mind.

          That said, being the TR module pretty undocumented, I'm currently investigating how to properly use it in external plugins and I'll report back asap.

          Last but not least, for the sake of code-correctness, I warmly suggest to avoid long code statement where nested pointers are used without being validated. This is a error-prone coding approach responsible for unexpected issues and should be avoided if possible.

          Best, Riccardo.

          1 Reply Last reply Reply Quote 0
          • r_giganteR
            r_gigante
            last edited by

            Hi zhhm156, so for coming late here, but it took more than expected.

            After getting in contact with the team in charge of the development and making some further researches, it appears that the VerifyServerOnClient function is indeed deprecated.

            I'll get back on this discussion in the future to notify about potential workaround to achieve a similar functionality.

            Best, Riccardo

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