selectX0R() Sub selectX0R() SetSelFilter "Object" set oSelection = GetValue( "SelectionList" ) for i = 0 to (oSelection.Count - 1) select_point(oSelection(i)) next SelectObj oSelection SetSelFilter "Vertex" End sub Sub select_point(oObj) Set oPoints = oObj.ActivePrimitive.Geometry.Points flg = 0 for i = 0 to oPoints.count - 1 if round(oPoints(i).Position.x,8) > 0 then if flg = 0 then set oSubComponent = oObj.ActivePrimitive.Geometry.Points(i).subcomponent flg = 1 Else oSubComponent.AddElement i End if end if next if flg = 1 then ActivateVertexSelTool SelectObj oSubComponent End if End Sub
| 修正 06/12/02 | ポイントの選択条件を修正 |
| 修正 07/01/09 | スクリプトを見直しちょっとスマートに 選択されているポイントにマーキング(赤い点)はされなかったのが、されるようになりました |
| 修正 07/01/13 | 今までオブジェクト選択状態じゃないとエラーになり コンポーネント選択状態の時にスクリプトが実行出来ずにイラっとしましたが 一行目にオブジェクト選択状態に切り替えるコマンドを入れて解決 |
| 修正 07/01/20 | 複数のオブジェクトを選択していても機能するようにしました |