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

    Why GetPosition and not GetPos?

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 420 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 14/12/2007 at 20:55, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Newbie question. I'm trying to write COFFEE scripts and find there is always a disagreement between the documentation and the real thing when it comes to method names. One example is the GetPos() command.
      All my SDK docs and even the ebook I bought say I can use GetPos to get an object's position. When I type the command into a COFFEE script inside a COFFEE tag attached to an object, the C4D compiler chokes on GetPos but approves GetPosition. I've looked at "C" code, docs, etc. - they all say GetPos not GetPosition. Any pointers on what I'm missing?

      Thanks. - Lee

      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 15/12/2007 at 04:26, xxxxxxxx wrote:

        Sorry, I cannot confirm that. the Coffee SDK docs clearly say GetPosition() here.

        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 15/12/2007 at 18:19, xxxxxxxx wrote:

          Thanks for the reply Katachi. Maybe I am looking at the wrong documentation.

          Here is an exerpt from the R10 SDK html files. This is at the top of the page describing the BaseObject as detailed in the file c4d_baseobject.h

          class BaseObject : public BaseList2D
          {
          public:
          BaseObject* GetNext(void);
          BaseObject* GetPred(void);
          BaseObject* GetUp(void);
          BaseObject* GetDown(void);
          BaseObject* GetDownLast(void);

          Real GetVisibility(Real parent);

          Vector GetPos(void);
          void SetPos(const Vector& v);

          The windows help file shows the same thing - GetPos(). It also shows a GetPosition() method, but that is for the position within a file, whereas I am looking for the command for the position of an object relative to it's parent object.

          Still puzzled.

          - Lee

          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 15/12/2007 at 18:25, xxxxxxxx wrote:

            Hi Lee,

            it´s the C++ SDK you are looking at. 🙂 The coffee SDK is only available for 9.5. There is no COFFEE doc for higher versions available.

            Get it here: [URL-REMOVED]

            or direct link here:
            ftp://ftp.maxon.net/pub/sdk/95/COFFEER95SDKHTML2005-10-28.zip


            [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

            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 15/12/2007 at 18:45, xxxxxxxx wrote:

              Thank you, thank you, thank you!

              You have saved me many MORE hours of trial and error as I learn to use COFFEE.

              I figured it had to be something like that but I was unaware of the COFFEE SDK for earlier versions. I will download it ASAP.

              Thanks for taking the time!

              - Lee

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