TabbedWikiAreaPerlScript

From The Foundry MODO SDK wiki
Jump to: navigation, search
  1.  if( lxq( "select.typeFrom typelist:\"vertex;polygon;edge;item;ptag\" ?" ) ) {
  2.      $selType  = "vertex";
  3.      $attrType = "vert";
  4.  #   lxout( "- RandomSel.pl - Vertex Selection Mode" );
  5.  
  6.  } elsif( lxq( "select.typeFrom typelist:\"polygon;vertex;edge;item\" ?" ) ) {
  7.      $selType = "polygon";
  8.      $attrType = "poly";
  9.  #   lxout( "- RandomSel.pl - Polygon Selection Mode" );
  10.  
  11.  } elsif( lxq( "select.typeFrom typelist:\"edge;vertex;polygon;item\" ?" ) ) {
  12.      $selType = "edge";
  13.      $attrType = "edge";
  14.  #   lxout( "- RandomSel.pl - Edge Selection Mode" );