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

Rs.OsnapMode() returns incorrect values

$
0
0

@Helvetosaur wrote:

According to the Help, rs.OsnapModes returns or sets osnaps according to the following bitmask table:

However, if I check for example just "Knot" osnap, the method returns 128 and not the 8 specified in the help above. 128 corresponds with the Osnap enumeration on the following page:

http://developer.rhino3d.com/api/RhinoCommon/html/3FA36DB8.htm

Edit: So it appears just the Help is wrong - get/set both respond correctly to the second posted table (Osnap Enumeration).

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5809

Trending Articles