It took a couple of hours to finally get the sublime in place, to write Vex and Python in it, and to set up the autofill capabilities of Python for Houdini modules and other expansion packs.
Here is a brief introduction of the installation of sublime, because this is not the focus, so only introduced his basic step, is a very simple thing.
1:sublime's official website http://www.sublimetext.com/
I downloaded sublime text version 3 because I used this editor to replace code with HTML, and version 2 was very cumbersome.
2: Install package control:https://packagecontrol.io/installation
Just follow the notes. Version 3 and version 2 to replicate different content.
These basic installations are the necessary components to install Vex and Python.
Configure Vex in Sublime Text 3:
Open the package Control:install in sublime, search for "Vex Syntax", enter it directly, this is very simple
After you have configured this, you can write Houdini Vex in sublime with a highlighted display, which is really a very comfortable thing.
Source file links in this: Https://packagecontrol.io/packages/VEX%20Syntax
Configure Python in Sublime Text 3 and populate it automatically:
1: Open the Package Control:install pack in Sublime, Search for "Jedi" (which is what the Jedi Master meant), and enter it directly.
After installing Jedi, your sublime will be able to implement the basic autofill of Python, then the path customization of the library so that automatically fills the same module that adapts to Houdini.
2: Open Preferences->package Settings->jedi->settings-default inside the sublime
One of the first places is called "Python_interpreter" and "python_package_paths" two heads, we directly change this part to:
"python_interpreter" : "Your Houdini installation path / Side Effects Software / Houdini / bin / hython.exe",
// additional python package path list
"python_package_paths" : [ "You Houdini installation path / Side Effects Software / Houdini / python27 / libs",
"Your Houdini installation path / Side Effects Software / Houdini / houdini / python2.7libs",
"Your Houdini installation path / Side Effects Software / Houdini / python27 / lib / site-packages"
],
This inside Pyhon_interpreter I choose is Houdini own changed python--called Hython (completely is a person likes), If you want to use regular Python, you can choose the Python.exe in the Python folder that comes with Houdini.
Replace these two parts directly with the above and after saving you will be able to use AutoFill in the sublime.
Report:
Here I add the use of Sublimehighlight method, it is rare to write another article.
Notice here I only in sublime 3 inside realized, as to sublime 2 method, I think the trouble really did not study.
Sublime highlight is specifically used to put the Sublime inside the writing format and the highlighting method directly into the format of HTML, I posted the code in the blog is basically implemented in this way, the art is that there is so little hobby can not be ╮(╯▽╰)╭
Source file address and method in this link: https://github.com/n1k0/SublimeHighlight
1: Open the Add repository the same way you open the package control, and then enter the word in the command line:
HTTPS://Github.com/n1k0/sublimehighlight/tree/python3
2: Re-open Package Control:install, enter: Sublimehighlight Enter this plugin even if installed.
The use of the method a little trouble
1: Select the content of the code that you want to convert so that it can be part of the whole page.
2: There are a lot of options under the Edit->highlight, you try it one after another.
3: Take convert to HTML example, in sublime will automatically generate a new page, which is the code after the conversion of the HTML markup Language, but we only need to select <div> * * * </div> This section (usually in the middle of the content) is copied and pasted into the blog's source code mode .
Configuring Vex and Python locales for Houdini 13 under sublime Text 3