I am trying to write a script in ghpython that runs a command taking in point inputs. The points are written in rs.Command() as parts of the string with the format x,y,z. This works in the standard perspective view, but creates wrong results in the orthographic views. I am guessing this is because of how point user inputs are interpreted in ortho, but I want this script to run correctly regardless of which view and settings I am using. Is there a way to create point inputs that are always 3d points regardless of this?
Also, an additional question. I want this script to cancel any current commands. I am trying to do this with having rs.Command(“_Cancel”) before my own command. This seems to work to cancel a command by itself, but for some reason, if it cancels a command, it will prevent the command in my script from running. Any ideas why?
8 posts - 3 participants