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

    Questions about Nodes

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 192 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 29/04/2008 at 09:36, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:      Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
         Hi!

      I have a few problems which prevent me to finish my plugin.

      1. Initiator-Nodes
      I have included the method Calculation in my calculation-node. When the outports are not connected to another one, or my node don't have any Outports, the method is not called.

      What method is called for an initiator-node (when the node has no output ports).

      2. Catch the incoming values from another ports

      I have the following code-snippet:

      GvValue* vinportA = ports.in_values[XXXXXXXX];
           if (!vinportA) return FALSE;   
           if (!vinportA->Calculate(bn, GV_PORT_INPUT, run, calc, 0)) return FALSE;

      At the place of XXXXXX I put in the number of the port. For example 0 for the first port, and for sub-ports I put in what? The next number 1? Then C4D crashs.

      What can I put into it to take alle ports? I want to catch all values from other nodes too. I tried it with a loop, but how I said, C4D crashs at the k =1.

      for ( int k=0; k <CountOfInPorts)
      {
           GvValue* vinportA = ports.in_values[k]
          [...]
      }

      3. (The Last question I think) How to get the type of an inport.

      In the calculation-table, is it possible to check which kind of port it is? String, integer,...

      I know some of that are fundamental knowledge I should know... but it's hard to get examples for the GV
      Thanks for your big help.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 01/05/2008 at 02:42, xxxxxxxx wrote:

        *thread push*

        Last try... 🙂

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