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
    • Login

    GvOperator questions

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 462 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 21/11/2008 at 02:48, xxxxxxxx wrote:

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

      ---------
      Hi,

      I got two questions concerning a GvOperator plugin...

      1. I created the node in XPresso, and it calculates fine. But it's always yellow (indicating an error). Why does Cinema seem to recognize an error, and how can I change this?

      2. The node is not always correctly recalculated.
      For example, I have a GVGENERALOBJECT input port. In the GvOperator, I look up the Type ID of the linked object. If it's a specific ID that I want, I output the linked object's name in - >GetText(GvNode *bn). If it's any other ID, I output "Wrong object". If nothing is linked, I output "Not connected". The recognition of the linked object is done in Calculate().

      When I link any object to the node, it *mostly* reacts by outputting the object's name or "Wrong object" (depending on what kind of object was linked). But sometimes, the Calculate() function seems not to be called.

      Help please! And thanks for any tipps!

      Greetings,
      Jack

      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 21/11/2008 at 03:52, xxxxxxxx wrote:

        Hi!

        1. It depends on your return value (False and True) in your Calculate method. Return false to make your node 'yellow'.

        2. I had the same problem. Use LINK. e.g:

        LINK in_link {INPORT; MULTIPLE;} instead of GVGENERALOBJECT to get a BaseLink object which points to your object.

        Written without guarantee... 🙂

        Bye.

        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 21/11/2008 at 05:02, xxxxxxxx wrote:

          If I use LINK in_link { INPORT; MULTIPLE; } it does not work at all, anymore.
          I can't retrieve the pointer to the linked object in the code 😞

          I wish this Node stuff was documented better.
          It's all trial and error the whole time.

          Greetings,
          Jack

          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 21/11/2008 at 13:52, xxxxxxxx wrote:

            Nobody knows anything about this?
            Matthias, I count on you! 🙂

            Greetings,
            Jack

            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 22/11/2008 at 01:28, xxxxxxxx wrote:

              OK, problem solved itself. Don't know how it got fixed, seems to be magic 😉

              Anyway, some working exmaple plugins for GvOperators would be awesome.

              Cheers,
              Jack

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