Created
March 18, 2020 09:21
-
-
Save lukpazera/e7ff3c78f78317f33b9c2955951c3212 to your computer and use it in GitHub Desktop.
Test current component mode using MODO SDK. Posted by Ben Halling on MODO's #coding slack channel.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LXtID4 currentTypes[4]; | |
LXtID4 vertex_type = srv_sel.LookupType(LXsSELTYP_VERTEX); | |
LXtID4 edge_type = srv_sel.LookupType(LXsSELTYP_EDGE); | |
LXtID4 poly_type = srv_sel.LookupType(LXsSELTYP_POLYGON); | |
LXtID4 item_type = srv_sel.LookupType(LXsSELTYP_ITEM); | |
currentTypes[0] = vertex_type; | |
currentTypes[1] = edge_type; | |
currentTypes[2] = poly_type; | |
currentTypes[3] = item_type; | |
LXtID4 cur = srv_sel.CurrentType(currentTypes); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment