A Maya command to export a GuerillaRender node

The Maya command grSaveNode exports a node and its children from Maya into a GuerillaRender node ("glight", "glayer", "grendergraph" etc..). The geometry shapes won't be exported using this function. Only the nodes such as lights, rendergraphs, renderpasses, materials and group of that can be exported.

The command syntax is grSaveNode objectPath filename.

  • objectPath : a string with the object path in Maya (like "|group1", "group|light21"). If an empty string is passed, the first selected object will be exported.
  • filename : a string with the filename to write. If an empty string is passed, the user is prompted to select a file.