This file contains hidden or 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
| macroScript SnaptView | |
| ButtonText:"Snapt View" | |
| category:"User Macro" | |
| ( | |
| fn SnapEulerAngles euler = | |
| ( | |
| local x = (floor((euler.x + 45.0) / 90.0)) * 90.0 | |
| local y = (floor((euler.y + 45.0) / 90.0)) * 90.0 | |
| local z = (floor((euler.z + 45.0) / 90.0)) * 90.0 | |
This file contains hidden or 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
| macroScript SearchModifier | |
| ButtonText:"SearchModifier" | |
| category:"User Macro" | |
| ( | |
| -- ボタンが押されたときに実行されるコード | |
| on execute do | |
| ( | |
| rollout roSearchModifier "Search Modifier" | |
| ( | |
| --レーベンシュタイン距離の算出 |
This file contains hidden or 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
| fn GetCommonLibFolder = | |
| ( | |
| local splitPath = FilterString (getFilenamePath (getSourceFileName())) "\\" | |
| local scriptsFolderPath = "" | |
| for i = 1 to findItem splitPath "Scripts" do scriptsFolderPath += splitPath[i] + "\\" | |
| return scriptsFolderPath | |
| ) |
This file contains hidden or 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
| ( | |
| fn GetSelectedVertices modi = | |
| ( | |
| local class = classOf modi | |
| if class == Editable_Poly do (return (polyop.getVertSelection modi) as Array) | |
| if class == Edit_Poly do (return (modi.GetSelection #Vertex) as Array) | |
| return #() | |
| ) |
This file contains hidden or 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
| ( | |
| local functions = " | |
| fn SwapMaterialID toID fromID = | |
| ( | |
| local editPolys = #() | |
| local editablePolys = #() | |
| for obj in geometry where obj.material == PolyBucket_multiMat do | |
| ( | |
| clearSelection() |