LatticeGradient

 

The LatticeGradient module is created with the CreateModule command by setting the Type to Gradient. The properties of the LatticeGradient are altered with the ModifyModule command. This is similar to the Network | Computational | Gradient command.

 

Module Type

Gradient

 

Syntax

object.Construct(“CreateModule”)

object.Option(“Type”, “Gradient”)

object.Do() or object.DoOnce()

 

object.Construct(“ModifyModule”)

object.Option(“Module”, “Gradient”)

object.Option(“Option_Name”, “OptionValue”)

object.Do() or object.DoOnce()

 

Option Name

LatticeGradientComponent

 

Example

This example shows how to create a gradient for a lattice and set the component for the gradient.

 

Sub Main

 

  'Declares VoxlerApp as an object

  Dim VoxlerApp As Object

 

 'Creates an instance of the Voxler application object

 'and assigns it to the variable named "VoxlerApp"

  Set VoxlerApp = CreateObject("Voxler.Application")

 

 'Make Voxler visible

  VoxlerApp.Visible = True

 

 'Access CommandApi

  Set CommandApi = VoxlerApp.CommandApi

 

 'Create a new Voxler document

  CommandApi.Construct ("New")

  CommandApi.DoOnce()

 

 'Create a function lattice

  CommandApi.Construct ("CreateModule")

  CommandApi.Option("Type", "FunctionLattice")

  CommandApi.Option ("AutoConnect", "False")

  CommandApi.Do()

 

 'Add a second component to the function lattice

  CommandApi.Construct ("ModifyModule")

  CommandApi.Option ("Module", "FunctionLattice")

  CommandApi.Option ("FunctionLatticeOutComps", "2")

  CommandApi.Do()

 

 'Add a filter to the function lattice

  CommandApi.Construct ("CreateModule")

  CommandApi.Option ("Type", "Gradient")

  CommandApi.Option ("AutoConnect", "True")

  CommandApi.Option ("SourceModule", "FunctionLattice")

  CommandApi.Do()

 

 'Set the component to apply to the lattice gradient

  CommandApi.Construct ("ModifyModule")

  CommandApi.Option ("Module", "Gradient")

  CommandApi.Option ("LatticeGradientComponent", "2")

  CommandApi.Do()

 

End Sub

 

Used by: CreateModule, ModifyModule

 

 

See Also

Automation Model

Automation Example - LatticeGradient