I’m attempting to replicate this Rhinoscript code in python:
Call Rhino.OsnapMode(1 + 256)
This turns on the “near” and “perpendicular” OSNAPs.
In python I tried this:
rs.OsnapMode(1 + 256)
and it shuts all of the OSNAPs off. If I try various numbers in the parenthesis, I get unpredictable results. For example, according to the help file, using 1 should turn on “Near” but 2 does. If I try this with “Near” turned on:
mode = rs.OsnapMode()
it returns 50190. With “Near” and “Perpendicular” on I get a value of 574478 returned.
What am I missing? I tried to replicate the example but it gave an error. Clearly I still have a lot to learn about python!!