Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5785

How to use alias for object snap during RunPythonScript

$
0
0

When I enter an alias with macro for an object snap such as _CenterSnap while

import rhinoscriptsyntax as rs
rs.GetPoint()

is waiting for input,
The "Center" point picking option is available only when picking points.
is reported on the command line, and the snap is not enabled.

The same alias works during a Rhino command, e.g. _Point

Is there a way to use an alias for an object snap while running a Python script via _RunPythonScript or from the Rhino Python Editor?

Thank you

5 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 5785

Trending Articles