Anatomía del script
Script anatomy
Programming in Rhino: OpenNURBS library. Plugins can be written in c++ and all that support the DotNET framework (VB:NET, CSharp, IronPython...). One of these is the RhinoScript plugin implements and extends the basic Microsoft Visual Basic Scripting language s well as Python at the front end, while tapping into all the core Rhino resources at the back end.
The bones: First python interpreter finds syntax errors during the prepass before anything has actually taken place. Every script must implement certain structure which tells the interpreter whats what.
Import statements, global variables, functions and classes, function call and class instances.
The import statement import different modules either built into or external. Access methods outside of the current file and reference objects, functions or other information. Comment add explanations or information to a file. Global variables can be accessed anywhere in your code (any variable that is created within a class or function is limited within that function). Functions code that compact certain functionality into a small package. Classes similar to functions but provide n opportunity for creating moduule code to package/compress segments of your code.the guts: rhinoscryptpackage are a set of functions. McNeel has made all of the classes in the .NET framework available for Python.
The skin: You can implment the script or link the script.
The debugger: testing and working line-by-line through any script. Term 'bug' from Harvard University's Mark2 aike relay calculator machine malfunction because a bug was trap inside the machine in 1947. Breakpoints allow pause the code in specific lines.
Última actualización
¿Te fue útil?