Constructors
Properties
Gets or sets the Python script "print()" target.
By default string output goes to the Rhino.RhinoApp.Write function. Set Output if you want to redirect the output from python to a different function while this script executes.
Command associated with this script. Used for localiation
object set to variable held in scriptcontext.doc.
Methods
Add assembly to list of assemblies used by python
Compiles a class in a quick-to-execute proxy.
Returns: A Python compiled code instance.
Determines if the main scripting context has a variable with a name.
Returns: true if the variable is present.
Constructs a new Python script context.
Returns: A new Python script, or null if none could be created. Rhino 4 always returns null.
Creates a control where the user is able to type Python code.
Returns: A Windows Forms control.
Evaluates statements and an expression in the main scripting context.
Returns: The expression result.
Executes a Python file. The file is executed in a new, __main__ scope.
Returns: true if the file executed. This method can throw scripting-runtime based exceptions.
Executes a Python file in the calling script scope. All old variables are kept.
Returns: true if the file executed. This method can throw scripting-runtime based exceptions.
Executes a Python string.
Returns: true if the file executed. This method can throw scripting-runtime based exceptions.
Retrieves a meaningful representation of the call stack.
Returns: A string that represents the Python exception.
Gets the object associated with a variable name in the main scripting context.
Returns: The variable object.
Retrieves all variable names in the script.
Returns: An enumerable set with all names of the variables.
Removes a defined variable from the main scripting context.
Get list of assemblies used by python for library browser and inclusion into the runtime
Sets a variable for runtime introspection.
Setups the script context. Use a RhinoDoc instance unless unsure.