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
| /* Scene Setup */ | |
| delete objects | |
| ref = plane width:100 length:100 widthsegs:1 lengthsegs:1 wirecolor:yellow pos:[0,0,-1] | |
| obj = convertToPoly (snapshot ref) | |
| obj.pos = [0,0,0] | |
| /* Scale Verts */ | |
| sca = [0.9, 0.9, 0.9] | |
| -- array of vert positions |
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
| plugin simpleObject quad | |
| name:"Quad" | |
| category:"Training Primitives" | |
| classID:#(0x4927806d, 0x3d9ca278) | |
| ( | |
| parameters main rollout:params | |
| ( | |
| width type:#float ui:width default:0 | |
| length type:#float ui:length default: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
| try(destroyDialog rlTest)catch() | |
| rollout rlTest "test" | |
| ( | |
| spinner uiWidth "Width" range:[-1e6,1e6,300.0] type:#worldUnits | |
| spinner uiHeight "Height" range:[-1e6,1e6,50.0] type:#worldUnits | |
| spinner uiSamples "Samples" range:[1,1e4,100] type:#integer | |
| group "Noise" | |
| ( | |
| spinner uiNoiseFrequency "Frequency" range:[0,1e9,.1] type:#float scale:0.01 | |
| spinner uiNoisePhase "Phase" range:[-1e9,1e9,1.0] type:#float scale:0.1 |
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
| formattedPrint 2 format:"3.3d" |
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
| --"Angle Threshold spinner" -- angle beetven face normal and Z-axis | |
| --"Max Height" -- select only faces which center position is > Max Height | |
| try(DestroyDialog ::bgaRoll)catch() | |
| rollout bgaRoll "selectObjTops" | |
| ( | |
| local poGFN = polyop.getFaceNormal, poGFC = polyop.getFaceCenter | |
| spinner spn_ang "Angle Threshold:" range:[0,360,5] pos:[5,5] | |
| spinner spn_heig "Max Height: " range:[0,360,0] pos:[4,25] | |
| button btn "Select T O P S!" width:150 pos:[5,45] |
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
| global _genPFPts = #() | |
| fn GenPFPoints nodes:undefined amount:10 location:4 = | |
| ( | |
| _genPFPts = #() | |
| pfp = PF_Source name:"pf_points" X_Coord:0 Y_Coord:0 Quantity_Viewport:100 Show_Logo:off Show_Emitter:off | |
| particleFlow.BeginEdit() | |
| op1 = Birth name:"pfp_birth" amount:amount Emit_Stop:currenttime Emit_Start:currenttime |
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 GenerateCircularPoints spaced:true count:10 radius:12 = | |
| ( | |
| pts = if spaced then | |
| ( | |
| for k=1 to count collect (text size:4 axistripod:off pos:[radius * cos((k-1) * (360.0 / count)), radius * sin((k-1) * (360.0 / count)),0] wirecolor:yellow text:(k as string)) | |
| )else( | |
| for k=1 to count collect (text size:4 axistripod:off pos:[radius*cos(a = random 0 360), radius*sin(a),0] wirecolor:yellow text:(k as string)) | |
| ) | |
| pts | |
| ) |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.Data; | |
| using System.Drawing; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Windows.Forms; |
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
| --Info Logging Start | |
| clearlistener() | |
| RunStartTime = (timestamp()) | |
| RunStartMemory = heapfree | |
| -- Function goes here | |
| --Info Logging End | |
| RunEndTime = (timestamp()) | |
| RunEndMemory = heapfree |
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
| clearlistener() | |
| delete objects | |
| --// create test scene | |
| fn testSceneSetup = | |
| ( | |
| local nodeCount = 100 | |
| for i = 1 to nodeCount do | |
| ( |