GvOperator questions



  • 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



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



  • 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



  • 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



  • 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


Log in to reply