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
    • Recent
    • Tags
    • Users
    • Register
    • Login
    1. Maxon Developers Forum
    2. Rox
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 8
    • Groups 0

    Rox

    @Rox

    0
    Reputation
    52
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Rox Unfollow Follow

    Latest posts made by Rox

    • RE: NETWORK_CONNECTTIMEOUT with SSL

      For now I am good. If I need further help, I will send the endpoint and function by email.

      posted in Cinema 4D SDK
      R
      Rox
    • RE: NETWORK_CONNECTTIMEOUT with SSL

      Thank you for the snippet Ferdinand.
      Timeout do still happen, but less frequently now.

      posted in Cinema 4D SDK
      R
      Rox
    • NETWORK_CONNECTTIMEOUT with SSL

      Hello,

      Trying to extend the network connect timeout, following this example:

        // This example retrieve the result from a POST and print it.
       
        maxon::Url theServer { "http://localhost:8080"_s };
       
        // Prepares the data that will be post
        maxon::String postData = "foo=bar&bin=go"_s;
       
        theServer.Set(maxon::URLFLAGS::HTTP_POSTMETHOD, maxon::HTTPMETHOD::POST) iferr_return;
        theServer.Set(maxon::URLFLAGS::HTTP_POSTDATA, maxon::CString(postData, maxon::StringEncodings::Utf8())) iferr_return;
       
        maxon::BaseArray<maxon::Char> memReq;
       
        // Retrieves the answer and read it to memory
        iferr (maxon::FileUtilities::ReadFileToMemory(theServer, memReq))
          DiagnosticOutput("@", err);
       
        // Prints the answer from server
        ApplicationOutput("answer @", memReq);
       
        // Prints the answer as a string
        maxon::String result(memReq);
        ApplicationOutput("result @", result);
      

      Using the following works well on http localHost, but does not work with SSL (web https):

       theServer.Set(maxon::URLFLAGS::NETWORK_CONNECTTIMEOUT, maxon::Milliseconds(15 * 1000)) iferr_return;  // allow 15 seconds before timeout
              theServer.Set(maxon::URLFLAGS::NETWORK_SESSIONTIMEOUT, maxon::Milliseconds(15 * 1000)) iferr_return;
      

      How can we force the timeout extension when using SSL ? Currently it defaults to around 10 seconds. Also, for SSL, do we need to do anything other than setting the flags ?

      Thanks.

      posted in Cinema 4D SDK 2024 c++ 2025 2026
      R
      Rox
    • RE: R23 Monterey SDK compile errors

      Xcode 13.1.0
      This is just happening on the R23/S24 SDK.
      All other SDK versions run fine from R18 up to 2024.

      posted in Cinema 4D SDK
      R
      Rox
    • R23 Monterey SDK compile errors

      Hello,

      Upon upgrading to Monterey, the R23 SDK no longer compiles. I am using Xcode 13.1
      All other versions compile fine.
      The errors are mainly in coreframework, newObject.h and baseref.h:
      Unexpected type name 'ConstrutorType': expected expression

      Thanks.

      posted in Cinema 4D SDK r23 c++ macos
      R
      Rox
    • 2024 Conversion questions

      Hello,

      I have a few questions about 2024 conversion that I am combining into 1 post.
      The plugin is a object data plugin with resource description.

      1. GetDParameter bitmapbutton
      Bool GetDParameter(GeListNode *node, const DescID &id, GeData &t_data, DESCFLAGS_GET &flags)
      {
      	
      	switch (id[0].id) 
      	{
      		case MY_BITMAP:
      		{
      			Int32 dirty = 0;
      			BitmapButtonStruct bbs(static_cast<BaseObject*>(node), id, dirty);
      			t_data = GeData(CUSTOMDATATYPE_BITMAPBUTTON, bbs);  // ERROR
      			flags |= DESCFLAGS_GET::PARAM_GET;
      			break;
      		}
      
      1. BaseSelect
      BaseSelect* bs;
      
      			if (polygonCnt > 0)
      			{
      				SelectionTag* sTag = SelectionTag::Alloc(Tpolygonselection); 
      myObj->InsertTag(sTag, 0);
      			
      		
      				bs = sTag->GetBaseSelect();   // ERROR
      
      1. IncludeExclude
      InExcludeData* myList= (InExcludeData*)bc->GetCustomDataType(MY_ID, CUSTOMDATATYPE_INEXCLUDE_LIST);   // ERROR
      

      Thanks.

      posted in Cinema 4D SDK 2024 c++
      R
      Rox
    • RE: Simple asset browser example

      Hi,

      Example code on how to convert a folder structure into a GeListNode hierarchy, and how to use it in the TreeViewFunctions context would be helpful.

      posted in Cinema 4D SDK
      R
      Rox
    • Simple asset browser example

      Hi,

      I am looking for example code on how to create a TreeView GUI resembling (a bare minimum) S24 asset browser.

      Basically I would like to specify a folder inside my plugin folder and browse for folders inside it.
      This I can do using BrowseFiles
      Typically this is a 1 level search, so no recursion is required.

      Inside each folder, there is a number of images.

      The TreeView should show a list of these folders. When the user selects an item from the TreeView list, the images inside each folder should be displayed respectively. The user then would invoque a command when an image is clicked (or double clicked).

      I already looked into TreeView Made Simple 1[URL-REMOVED] and TreeView Made Simple 2[URL-REMOVED]

      I would convert the found folders into a BaseArray and navigate inside it.
      But where should the array be created, inside TreeViewFunctions or somewhere else, and more importantly, how to display the image content of each folder ?

      Thanks for any help on the subject.


      [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

      posted in Cinema 4D SDK r20 c++
      R
      Rox