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

    Py4D: compare vectors

    Scheduled Pinned Locked Moved Bugs
    3 Posts 0 Posters 672 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 09/03/2011 at 06:52, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:      
      Language(s) :

      ---------
      Comparing vectors does not work.

      vec = c4d.Vector(255)  
      if vec >= c4d.Vector(100) :  
        gui.MessageDialog("Vector is bigger than Vector(100)")
      

      And by the way, how are they compared, if they would be compared ?

      Is the expression True if only one value is bigger or must all values be bigger than 100 ?

      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 12/03/2011 at 09:06, xxxxxxxx wrote:

        This is not a bug, the operators <, >, <=, >= were removed some versions ago.
        To check which vector is greater, compare the length manually. v1.GetLength()<v2.GetLength()

        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 12/03/2011 at 13:31, xxxxxxxx wrote:

          Oh, but would be pretty useful.
          Thanks,

          Niklas

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