

#MAYA MEL PRINT SELECTION CODE#
This will speed things up and prevent the print from costing too much.Ĭan someone tell me what wrong with this code Given that 3D printers can take some time to print, as well as be expensive to run, I've also used the "Scale" command (type "scale" and hit "Enter" on your keyboard) to reduce the size of my print to no longer than 3" along its largest axis. The Objet Eden 260V prints faster in the X and Y axis than it does in the Z axis - therefore, I have oriented my file to place as much of the object in the X and Y axis as possible. Before activating any commands be sure to select all geometry in the scene by clicking and dragging across it all using your left mouse button. These commands can be used by simply typing "move" and hitting "Enter" on the keyboard and "rotate" and hitting "Enter" on the keyboard respectively. You can now freely use the "Move" and "Rotate" commands to move and rotate the objects in order to orient them properly for your 3D printer. Of course, you can simply leave the model in millimeters as well. When the "Document Properties" window pops up, select "Units" and drop down the "Model Units" menu and select "Inches". You can change this to inches, if you want, by going to "File" in the menu bar and selecting "Properties". Usually, an OBJ file will open in Rhino in millimeters. An OBJ import window will pop-up, but no changes to this will need to be made and you can simply click "OK". Select your recently created OBJ file in the pop-up window and select "Open" to bring the file into Rhino. In Rhinoceros go to "File" in the menu bar and select "Open". A fun exercise is to see how many objects you can make before crashing the program - my current computer begins to really slow down around 10k spheres. At the end of the day that count number can be whatever you like. If you want it to run longer simply change the "while ($countC <= 200) " to "while ($countC <= 1000) ". Currently, the script only makes 200 duplications. You can also make the object much larger by having the script run longer. This is because these are specific objects within the script that give it specific instructions and not having them will simply cause the script to fail. Be careful, though - if you remove or change any of the additional objects, such as a "(", ")", "=", or " " the script will no longer run. For example, "rand(-.49.49)" could be changed to "rand(-2,2)" - this would make the script move the duplicated spheres up to 2" as opposed to just up to. You can freely change these variables to generate different effects - simply alter the numbers within any "rand" variable to do so. That is because this script is using random variables to decide where to place each sphere. You may have noticed that your recursive object doesn't look the same as the one in the image I provided.
