Python Telnet console
 
 
 

Click the Telnet Console tool to open a local Telnet console that is automatically connected to MotionBuilder, with MotionBuilder Python Scripting already imported.

You can also allow remote consoles using the Telnet protocol. This must be enabled in the Settings > Preferences > Python, by enabling both Server and Allow Network Connections. When you Telnet from a local or network console, you must first connect to MotionBuilder by typing: telnet <host_name> 4242. Where <host_name> is either the name of the machine or its IP address, or (for local consoles) the string localhost. Only after executing this Telnet command can you execute Python commands from a console.

Every time you click Telnet Console a new Telnet session is opened.

When running Python scripts remotely, take care that file paths in your scripts are meaningful on the host machine. For example, if you write a script that accesses a file at c:\myscripts, this path must be accessible from the host machine running MotionBuilder. One way to accomplish this is to share network drives mapped to the same letters.