All Projects → teared → Vex

teared / Vex

Houdini add-on for Sublime Text

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Vex

Sublime Coffee Compile
Preview compiled CoffeeScript in your editor!
Stars: ✭ 82 (-30.51%)
Mutual labels:  sublime-text
Sublime Robot Framework Assistant
Robot Framework plugin for Sublime Text3
Stars: ✭ 103 (-12.71%)
Mutual labels:  sublime-text
Nord Sublime Text
An arctic, north-bluish clean and elegant Sublime Text theme.
Stars: ✭ 109 (-7.63%)
Mutual labels:  sublime-text
Sublimechef
A Sublime Text 2 Package for authoring Chef related files
Stars: ✭ 85 (-27.97%)
Mutual labels:  sublime-text
Pythonimproved
The best Python language definition for Sublime Text - ever. Includes full support for Unicode, as well as both Python 2 and Python 3 syntax. Check out the Neon Color Scheme for highlighting.
Stars: ✭ 95 (-19.49%)
Mutual labels:  sublime-text
Incrementselection
Add a number to each selection in Sublime Text, incremented once per selection
Stars: ✭ 105 (-11.02%)
Mutual labels:  sublime-text
Ecmascript Sublime
ECMAScript/JavaScript syntax (ES2015-ES2018, JSX, template highlighting, etc) with absurdly specific scopes
Stars: ✭ 78 (-33.9%)
Mutual labels:  sublime-text
Sublime Js Custom
Customizable JavaScript syntax highlighting for Sublime Text.
Stars: ✭ 116 (-1.69%)
Mutual labels:  sublime-text
Trimmer
A Sublime Text plug-in for cleaning up whitespace.
Stars: ✭ 100 (-15.25%)
Mutual labels:  sublime-text
Productive Sublime Snippets Ruby
Ruby Snippets for Sublime Text
Stars: ✭ 109 (-7.63%)
Mutual labels:  sublime-text
Auto Save
Automatically saves the current file after every modification
Stars: ✭ 86 (-27.12%)
Mutual labels:  sublime-text
Unittesting
Testing Sublime Text Packages
Stars: ✭ 95 (-19.49%)
Mutual labels:  sublime-text
Sublimeformatsql
Sublime Text 2 command to format long SQL statement to a more readable form (also available via Package Control)
Stars: ✭ 107 (-9.32%)
Mutual labels:  sublime-text
Laravel Whoops Editor
Laravel Whoops Editor helps to open your code editor from exception stack trace.
Stars: ✭ 83 (-29.66%)
Mutual labels:  sublime-text
Laravel 5 Snippets
Laravel 5 Snippets for Sublime Text
Stars: ✭ 110 (-6.78%)
Mutual labels:  sublime-text
Guides
A miscellania of how-to's, references, and style guides for stuff I'm into.
Stars: ✭ 82 (-30.51%)
Mutual labels:  sublime-text
Carbonsublime
🚀 A Sublime Text 3 Plugin for Carbon. (https://carbon.now.sh)
Stars: ✭ 104 (-11.86%)
Mutual labels:  sublime-text
Inspiredgithub.tmtheme
A color scheme for Sublime Text 3.
Stars: ✭ 117 (-0.85%)
Mutual labels:  sublime-text
Themr
A UI theme selector for Sublime Text.
Stars: ✭ 112 (-5.08%)
Mutual labels:  sublime-text
One Dark Theme
One Dark theme for Sublime Text
Stars: ✭ 109 (-7.63%)
Mutual labels:  sublime-text

Houdini add-on for Sublime Text

Features

  • VEX and VEX Expressions syntax.
  • VCC-based syntax checker with formatted errors output.
  • Function auto-completions with arguments.
  • Function documentation via styled popups.
  • Special support for HScript add-on.

Open issues for bug reports, requests, suggestions, etc.

Screenshots

alt tag alt tag alt tag alt tag

Setup

Preferences → Package Control → Install Package → VEX

Requirements:

  1. Recent version of Sublime Text.

  2. Package Control

    Tools → Install Package Control

You should be able to use the add-on now. Skip all "Optional" sections below if you are first-time user. Read them if you want to use more advanced features.

Optional: Set as External Editor

Create EDITOR variable in your houdini.env and set it to Sublime Text executable path.

Example file location on Windows:

C:\Users\teared\Documents\houdini18.5\houdini.env

Example line to add to houdini.env (use forward slashes):

EDITOR = "C:/Program Files/Sublime Text 3/sublime_text.exe"

Place cursor in any parameter field and press Alt+E, then place cursor inside the built-in editor and press Alt+E again to launch Sublime Text from Houdini.

Optional: Configure VCC Path

  1. Tools → Build System → New Build System…

  2. Remove default contents and copy-paste VEX Build file here.

  3. Change value of executable setting to existing VCC executable path.

    Example setting for Windows:

    "executable": "C:\Program Files\Side Effects Software\Houdini 18.5.351\bin\vcc.exe",
    
  4. Save to Data/Packages/User/Any Name.sublime-build

    To override default, save it to Data/Packages/VEX/prefs/VEX Build.sublime-build

Alternatively, add Houdini binaries dir to the PATH environment variable. By default, the add-on uses vcc command.

See "Syntax Check" section of this readme.

Optional: HScript add-on

Similar add-on for HScript and HScript Expressions languages. Syntax, auto-completions, documentation popups. It used by the VEX add-on for backtick-expressions embedded inside snippets.

Optional: Other Tools

Some tools I use to work on Houdini projects using Sublime Text.

  • Monolit — Sublime Text 3.0 latest "Monokai" turned into "1337" color scheme. Better scopes from Monokai and greater color palette from 1337. Greatly affects default Markdown syntax highlighting.
  • SublimeAStyleFormatter — format messy code for easier reading. My settings.
  • Anaconda — add-on that covers all Python scripting needs, including HOM scripting for Houdini.

Usage

Open any VEX code and choose VEX using menu at the right bottom corner of the editor. By default, it will be automatically set on all .vfl files. If you don't want to change from ANSI C to VEX every time you open some VEX library with .h extension, there is "Open all with current extension as..." action in the same menu.

When you start to type VEX function name, it will prompt you with suggestions. You can choose one and use Tab and Shift+Tab keys to navigate back and forth. Snippets are also available for common keywords: if, else, for, foreach, while.

To show docs for the function:

Tools → Command Pallette → VEX: Show Documentation for Function Under Cursor

Shortcut: Ctrl+Alt+D.

For the rest, check Sublime Text Documentation, it has many small features that make textual editing easy and powerful.

Syntax Check

If you configured VCC path, you can do syntax check in the editor and see errors. It doesn't require Houdini to run on background.

Tools → Build With... →

  • VEX Build

    Use this variant if you write a custom shader and define context function with return type like: surface, displace, cvex, etc. This is what VCC expects by default, and probably least useful for Houdini user this days.

  • VEX Build — As a Library

    If you write a custom library to include it in your code.

  • VEX Build — As a Snippet

    If you write wrangle. Most common choice.

See some code examples in the add-on development repo.

VCC has no idea about attribute bindings, libraries got automatically compiled within CVEX context, snippets are just functions internally, and VCC does not expect to see a surface shader there. Therefore three variants. So, if you try to do syntax check and error messages make a little sense, like this:

Error 1092: Cannot compile VEX library; source file's context 'surface' does not match required context 'cvex'.

Error 1040: Invalid return type (surface) for function my_function_name.

Error 1091: Invalid context name 'float'

Error 1088: Syntax error, unexpected '=', expecting '('

Error 1088: Syntax error, unexpected identifier, expecting ';'

Check if correct build variant is used. Error 1088 is a common error, but in case of wrong build variant chosen, there won't be visible syntax problems.

License

Public domain.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].