

- CINEMA 4D STUDIO TEMPLATES INSTALL
- CINEMA 4D STUDIO TEMPLATES UPDATE
- CINEMA 4D STUDIO TEMPLATES ARCHIVE
- CINEMA 4D STUDIO TEMPLATES CODE
- CINEMA 4D STUDIO TEMPLATES DOWNLOAD
Autocompletion does not work for the maxon package.str files, if the syntax is invalid, the line is coloured red. Syntax highliting for *.res and *.str files: The syntax for files with the extension.
CINEMA 4D STUDIO TEMPLATES CODE
Python Console output: Once Visual Studio Code is connected to Cinema 4D, if new content appears in the Python console, it will also be displayed in a Visual Studio Code console called "Cinema 4D". Load Cinema 4D Script Template: Loads a template script, corresponding to a python file from the folder defined by the c4d.template option. In order to use this feature, Cinema 4D and Visual Studio Code must be connected. Run it and delete it from Cinema 4D.ĭebug in Cinema 4D as a Script in Script Manager: Start a debugging session for the given script to Cinema 4D. A temporary script from Visual Studio Code: Create a new temporary python script in Cinema 4D.
CINEMA 4D STUDIO TEMPLATES UPDATE
Saved to disk or from a temporary Cinema 4D script: Update the contents of the script in Cinema 4D and run it.Lastly, depending on where the script is saved in Visual Studio Code, a different behaviour is expected if the file is: Autocomplete does not work.Įxecute in Cinema 4D as a Script in Script Manager: Run a script directly in Cinema 4D. A temporary script from Cinema 4D: Works as expected, CTRL+S will send the content to Cinema 4D.This file will be added to Visual Studio Code and to communicate with Cinema 4D you will need to use this file instead of the previous temporary file. A temporary script from Visual Studio Code: A new temporary file will be created in Cinema 4D.Saved from file to disk: Works as expected, saving the file refreshes the script content in both the IDE and Cinema 4D.Lastly, depending on where the script is saved in Visual Studio Code, different behaviour is expected if the file is: In order to use this feature Cinema 4D and Visual Studio Code must be connected.

Load Script in Script Manager: Load the active script from the Visual Studio Code editor into the Cinema 4D Script Manager. Send script from Cinema 4D to Visual Studio Code: The command in the "File" menu of the Cinema 4D Script Manager allows you to send the contents of the active script in the Script Manager to all IDEs connected to Cinema 4D. Otherwise, "C4D X" means that the connection is not active. If the status bar shows "C4D ✓", it means that the connection is active and that the communication is going well. Runing the Toggle Connection with Cinema 4D command or clicking on the items in the status bar toggles the current connection status. Feature DescriptionĬonnection states with Cinema 4D: In the lower left corner of the Visual Studio Code windows, a status bar indicates the current connection status with Cinema 4D. This should be the same than the one in Cinema 4D preference.Ĭ4d.template: Path to the directory containing the python scripts used as template. If not defined or invalid, it is automatically defined when Visual Studio Code and Cinema 4D first connect.Ĭ4d.ip: IP address used to connect to Cinema 4D.Ĭ4d.port: Port used to connect to Cinema 4D. In Visual Studio Code preference within the Extensions | Cinema 4D category.Ĭ4d.path: Path to the Cinema 4D directory used for autocompletion and debugging.

Port: The port the current WebSocket server is listening to. Once the server started, you can connect an IDE instance to it and shares codes. The server will then start automatically during Cinema 4D startup.

WebSocket Json: If enabled, the WebSocket server is started. In Cinema 4D preference within the Extensions | Code Exchange menu.
CINEMA 4D STUDIO TEMPLATES DOWNLOAD
The Cinema 4D Connector extension for Visual Studio Code, directly accessible in the Visual Studio code marketplace, or download it here. You then need to activate the extension in the Cinema 4D preferences in the Extensions | Code Exchange menu, activate the WebSocket Json checkbox.
CINEMA 4D STUDIO TEMPLATES ARCHIVE
Once downloaded, extract the archive to the Cinema 4D S26+ plugins folder.
CINEMA 4D STUDIO TEMPLATES INSTALL
In order to be able to use all the features it is necessary to install the following two extensions: This document contains documentation for the Cinema 4D Connector project.
