@siemen wrote:
When you go to the right view and run this python code, how do you get the Cplane coordinates instead of the World coordinates as it does now?
import Rhino import rhinoscriptsyntax as rs def PointCoordinates(): gp = Rhino.Input.Custom.GetPoint() gp.SetCommandPrompt("Select point") while True: gp.ClearCommandOptions() get_rc = gp.Get() if gp.CommandResult()!=Rhino.Commands.Result.Success: return gp.CommandResult() if get_rc==Rhino.Input.GetResult.Point: point = gp.Point() print point if get_rc == Rhino.Input.GetResult.Cancel: break return Rhino.Commands.Result.Success if __name__ == "__main__": PointCoordinates()
Posts: 4
Participants: 2