Skip to content

Instantly share code, notes, and snippets.

@lukpazera
Created March 18, 2020 09:21
Show Gist options
  • Save lukpazera/e7ff3c78f78317f33b9c2955951c3212 to your computer and use it in GitHub Desktop.
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.
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