Controlling Lucid from MaxScript 

It is possible to control Lucid entirely from MaxScript using its built-in functions. The following functions are available:

-- Starts Lucid "sandbox" simulation mode
LucidStart()

-- Step Lucid simulation by one frame. LucidStart() should have been called prior to this.
LucidStep()

-- Stops Lucid "sandbox" simulation mode
LucidStop()

-- Determines whether Lucid "sandbox" simulation is started
[bool] IsStarted()

-- Starts and plays Lucid in Sandbox simulation mode
LucidPlay()

-- Sets global Lucid parameter as a floating point value
SetGlobalParameterFloat [string parameterName] [float value]

-- Sets global Lucid parameter as integer
SetGlobalParameterInt [string parameterName] [int value]

-- Resets all global Lucid parameters
ClearGlobalParameters()

-- Adds currently selected nodes to Lucid simulation using the specified preset index (which is an integer value from 0 to 12)
AddToSimulation [int presetIndex]

-- Gets the version of Lucid plugin as either a string (0) or integer (1)
GetVersion [int which]
 

Sample code 

Sample code can be found in MaxScript access documentation sections for each Lucid object, operator, and helper.

There is also global sample code which tests Lucid: Test_LucidHost.ms