Vcc

From Odwiki

Jump to: navigation, search

vcc is the standalone VEX compiler.

Purpose

VEX is a source language which has to be compiled into a byte-code representation before it can be used in Houdini or Mantra. vcc is the commandline compiler which will compile vex source code (.vfl files) into byte-code (.vex files) or into OTL files (which can be loaded directly into Houdini using the File>Install Operator Type Libraries and so on).

vcc will either create a standalone node in the context for which is was written, or optionally try to convert the code into a VOP node so it may be used in conjunction with other VOPs.

If you run vcc -h list of options to the compiler will be displayed.


Listing all VEX functions

It's also possible to run vcc -X context_name to see a list of all the VEX functions available in the context_name. The context_name should be one of the following.

  • surface
  • displacement
  • light
  • shadow
  • atmosphere (fog also works)
  • sop
  • pop
  • cop2 (cop also works)
  • chop
  • image3d

You will probably want to run the output of the -X option through a pager, like more or less.

© 2009 od[force].net | advertise