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
    • Recent
    • Tags
    • Users
    • Login

    "pick session"

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 208 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

      On 10/11/2014 at 07:33, xxxxxxxx wrote:

      Hello everyone!

      Is there a way to prompt the user to pick positions in the viewport out of a python script?

      For Softimage I once wrote a tool that aligns object(s) to one another, and it required the user to interactively pick 6 points (= positions). There's an SDK function in XSI called "PickPosition()" for such cases. When invoked, the user can place some green crosshair cursor in the scene, with point snapping automatically active. The function then returns 3D coordinates.

      Look like this:

      Do we have anything similar here?

      Thanks a lot!
      Best regards
      Eugen

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 11/11/2014 at 02:51, xxxxxxxx wrote:

        Hello and welcome,

        I don't think something with the exact same functionality exists. You will be able to implement such a tool by creating a ToolData[URL-REMOVED] plugin. Another way could be to use a while loop inside a script in the Script Manager and to handle mouse events there.

        best wishes,
        Sebastian


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

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