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

    Get Bool from Xpresso Inport

    SDK Help
    0
    6
    516
    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 29/03/2008 at 13:54, xxxxxxxx wrote:

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

      ---------
      Hi!

      I have a short question. I can't finde GetBool in the GeData Class.

      Does someone know, how I am able to get the settings from an Boolean-Inport? I only find GetReal... in the SDK.

      Thanks a lot 🙂

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

        If you look reeeeallly hard, you'll find that one doesn't exist. 😉

        Use (Bool)GetLong() instead for GeData. Don't ask me why the developers have omitted a GetBool()/GeData(Bool b) for GeData.

        That said, GvPort indeed has SetBool() and GetBool() methods. Get the GvPort from the GvNode (GetInPort(), GetOutPort, etc.).

        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 29/03/2008 at 15:12, xxxxxxxx wrote:

          Try GetLong(), FALSE = 0 and TRUE = 1

          cheers,
          Matthias

          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 30/03/2008 at 04:12, xxxxxxxx wrote:

            Hi!

            I tried:

            GvPort* iptB = bn->GetInPort(1);
                 GeData iptdataB = GvGetPortGeData(bn, iptB, run);
                 LONG valueC = iptdataB.GetLong();

            but kuroyume0161 said, I have to use GetLong instead of GeData. I am confused a little bit...

            Thanks for your great help.

            P.S.

            GePrint(LongToString(valueC));

            Returns 0 every time...

            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 31/03/2008 at 05:36, xxxxxxxx wrote:

              just access the port with GetBool().

              > \> GvValue \*vinport = ports.in_values[0]; \> if(!vinport) return FALSE; \> \> if(!vinport->Calculate(bn, GV_PORT_INPUT, run, calc, 0)) return FALSE; \> \> GvPort \*inport = vinport->GetPort(); \> \> Bool value = FALSE; \> \> inport->GetBool(&value;,run); \>

              ports is your GvValuesInfo structure

              cheers,
              Matthias

              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 31/03/2008 at 08:58, xxxxxxxx wrote:

                thanks a lot... works fine...

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