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

    Initializing GvNode Parameters

    SDK Help
    0
    4
    964
    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
      Helper
      last edited by

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

      On 10/12/2002 at 14:50, xxxxxxxx wrote:

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

      ---------
      When I retrieve the node's data container and set values they do not seem to stick once the node is created. Any ideas?
      darf

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

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

        On 11/12/2002 at 00:21, xxxxxxxx wrote:

        Could you describe what you do more precisely? Do you allocate a node, insert something into its container and then insert it into an Xpresso tag?

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

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

          On 11/12/2002 at 08:40, xxxxxxxx wrote:

          Te question sould be:
          How do I initialize the GvNode parameters ( originally created by the fact they are defined in the .res ) to a value in the Init function and ave it actually work so that when the port is created for that value it will already by defaulting to the value set in the Init function?
           
          darf

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

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

            On 12/12/2002 at 01:12, xxxxxxxx wrote:

            The Init() function canot be used for GV nodes. Use iCreateOperator() instead:

                
                
                  virtual Bool iCreateOperator(GvNode *bn)  
                  {  
                    BaseContainer* data = bn->GetOpContainerInstance();   
                    if (!data) return FALSE;
                
                
                
                
                    data->SetVector(GVTEST_OFFSET, Vector(1,2,3));
                
                
                
                
                    return SUPER::iCreateOperator(bn);  
                  }
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post