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

    Seperating the Vector Values to use elsewhere.

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 734 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 03/03/2011 at 02:59, xxxxxxxx wrote:

      Hello everybody,
      How can I seperate the 3 vector Values to use elsewhere.

      e.g.

        
      boundingbox = activeobject.GetRad()   
      print boundingbox   
      # output: Vector(100.836, 35, 30)   
      

      I want to have the min and the Max Values as seperated Variables

      e.g.

        
      a = 100.836   
      b = 35   
      c = 30   
      

      thanks in advance
      mogh

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

        Look at this example, I think it will answer more than just your question.

        def SeprVec(vec) :   
             return vec.x, vec.y, vec.z   
          
          
        def main() :   
            import c4d   
            vec = c4d.Vector(100,30,25)   
             a, b, c = SeprVec(vec)   
        

        cheers, nux

        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 03/03/2011 at 22:25, xxxxxxxx wrote:

          thanks nux95

          i got it working ...

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