Script
剧本
Cinema 4D uses the Python script language.
C4D使用 Python 脚本语言。
Python offers almost the same accessibility to Cinema 4D functions as the C++ SDK. Support and documentation for Python can be found exclusively at http://developers.maxon.net.
提供了与 c + + SDK 几乎相同的 Cinema 4D 功能。对 Python 的支持和文档只能在 google http://developers.maxon.net 上找到。
用户脚本
In addition to both commands described below you will find a list of all Python. scripts. In contrast to plugins, scripts have *.py extensions. If a TIF image of the same name is located there it will be used as an icon.
除了下面描述的这两个命令之外,您还将找到所有 Python 的列表。脚本。与插件不同,脚本有 * 。Py 扩展。如果一个同名的 TIF 图像位于那里,它将被用作一个图标。
运行脚本..。
If this option is selected, an open dialog window will open in which you can load and run a script.
如果选择此选项,则将打开一个打开的对话框窗口,您可以在其中加载并运行脚本。
脚本文件夹..。
Opens the script directory in your user directory (library / scripts).
打开用户目录(库/脚本)中的脚本目录。
源代码保护者..。
Here you can select a *.pyp plugin file and encode it. However, the encoding cannot be undone. An encoded file has the extension *.pypv. The encoded file will be saved to the same path as the non-encoded file (which can be deleted separately).
这里你可以选择一个 * 。Pyp 插件文件并编码。但是,无法撤消编码。已编码文件的扩展名为 * 。核型多角体病毒。已编码的文件将被保存到与未编码文件相同的路径(可以单独删除)。
Note that the encryption is not 100% secure. It offers low-level protection, which can be circumvented by those with corresponding technical know-how. C++ plugins should be used if you want to ensure the highest level of security.
请注意,加密并非100% 安全。它提供低水平的保护,这可以规避那些与相应的技术诀窍。如果你想确保最高级别的安全性,就应该使用 c + + 插件。
表达式编辑器
The Expression Editor can be called up from several items:
表达式编辑器可以从以下几个项目调用:
The Editor has 4 buttons:
编辑器有4个按钮:
装载
Load *.py files to display their code in the Editor.
加载 * . py 文件以在编辑器中显示它们的代码。
保存
Saves code.
保存代码。
编译..。
The code will be checked for errors. Any errors found will be displayed below. If this button (or the next) is not clicked, the code will not be saved in the corresponding object/tag.
将检查代码是否有错误。发现的任何错误将显示在下面。如果没有单击此按钮(或下一个按钮) ,代码将不会保存在相应的对象/标记中。
执行
Executes the code.
执行代码。
重置所有
Resets the state of all Python objects (tag, Node, Generator).
重置所有 Python 对象(标记、节点、生成器)的状态。
插件管理器..。
The Plugin Manager lists all known Python plugins, including their load times. At the top is a name filter that works exactly like the one in the Customize Commands Manager. If you have a long list of plugins, this filter will prove to be quite helpful.
插件管理器列出了所有已知的 Python 插件,包括它们的加载时间。顶部是一个名称过滤器,其工作原理与自定义命令管理器中的过滤器完全相同。如果你有一个很长的插件列表,这个过滤器将被证明是非常有用的。
At the left of the list you can see which plugins loaded correctly. Those that did not will be marked with an "X".
在列表的左边,你可以看到哪些插件正确加载了。那些没有这样做的将被标上“ x”。
Clicking on the small triangle next to the file name will open the view and the plugin name will be displayed.
单击文件名旁边的小三角形将打开视图,插件名将显示出来。
Right-clicking on a name in the list will open a context menu with the following commands:
右键单击列表中的某个名称将打开一个上下文菜单,其中包含以下命令:
全部展开,全部折叠
Opens or closes the entire tree view (as if you were to open each arrow manually).
打开或关闭整个树视图(就像手动打开每个箭头一样)。
插件刷新
Right-clicking on a plugin will make this option available, which allows you to reload that plugin.
右键点击一个插件将使这个选项可用,这样你就可以重新加载这个插件。
在 Finder 中显示
Right-clicking on a plugin will make this option available, which will display the plugin’s location in a finder window.
右键点击一个插件将使这个选项可用,它将在查找器窗口中显示该插件的位置。
重新装载所有
Reloads all plugins.
重新装载所有插件。
创建重载脚本
Creates a Python script and copies it to the cache. The script will then reload the given plugin.
创建一个 Python 脚本并将其复制到缓存中,然后脚本将重新加载给定的插件。
控制台
脚本日志
脚本管理器