Python#
This site provides a detailed reference for all the Python commands available in VEXcode AIM. Each command entry includes descriptions, parameters, and usage examples to help you understand how to use them effectively.
Command Categories#
Python commands in VEXcode AIM are grouped by their functionality. Understanding these categories helps in using them effectively.
Method Type |
Description |
Example |
---|---|---|
Actions |
Performs an action such as logging, printing, or moving. |
|
Mutators |
Updates object attributes. |
|
Getters |
Used to retrieve data. |
|
Properties |
Attributes associated with an object. Not a method. |
|
Callbacks |
Stores and invokes a function later, often triggered by an event. |
|
Reading a Command Entry#
Each command entry follows a consistent structure:
Command Name – The official name of the command.
Description – A brief explanation of what the command does and what it may return.
Definition – The syntax of the command, showing how it should be written in code.
Parameter Table – Lists all inputs the command accepts.
Example Code – A usage example formatted as a code block.
Example Command Entry#
set_console_text_color#
set_console_text_color
sets the color of all subsequent print
commands.
Usage:
set_console_text_color(color)
Parameter |
Description |
---|---|
|
The color to set: |
# Display a green message on the Console
set_console_text_color(GREEN)
print("I am green!")