Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    GvPort : GetVisible

    SDK Help
    0
    4
    346
    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 11/01/2004 at 19:55, xxxxxxxx wrote:

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

      ---------
      GvPort : GetVisible seems to always return TRUE.  Does it not work or is it evaluating on something other than then visibility of the port in the Xpresso node?
      Regards,
      Thomas Cray
      www.cidertank.com

      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/01/2004 at 06:27, xxxxxxxx wrote:

        GetVisible does work fine for me. The visibility is the "hidden" state of the port. This does not mean if the port is created (and therefore visible) and shown.
        Here is an example:
        inport = vinport->GetPort(); 
        if(inport->GetVisible()) inport->SetVisible(FALSE); //Hides the port
        GePrint(LongToString(inport->GetVisible())); //GetVisible does now return 0
        HTH

        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/01/2004 at 08:42, xxxxxxxx wrote:

          Thank you.
          Is there a way to tell if the port has been created?
          Thomas

          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/01/2004 at 08:57, xxxxxxxx wrote:

            Well, the only way I know of (or rather that´s how I am doing it for my nodes) is to check if there is a sub id for the port because this is only assigned when the port is created.
            if(!inport->GetSubID()) GePrint("Port not created");

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