MPI AnchorData Module: Divide Plugin Instalation

The dividers setup by MPI rely on mpi scripts to work.
If you wish to use your project outside of MPI or as a standalone you can install a plugin to handle the scripting.
Like the rest of the anchorData setup this is very easy.

Click on the Install the plug-in button on the anchorData palette.

That is pretty much it. A dialog opens giving you some information about how the plug-in works, and a new graphic is created on the card. (se ebelow for the dialog text) Some Scripts are added to you project (see below) You can just hide the plug-in and use the project withor without MPI.

Dialog Text

ModuloPI's dividers plug-in has been installed into your project (you'll probably wish to set the visible of the graphic to false).
The dividers will now work when MPI is absent (for instance if you build a standalone from your project).
A user property containing the long id of the plug-in graphic has been added to your project.
The script of your project has been modified to insert the script into back on openproject and remove it on closeproject. These script additions will be removed if the plug-in graphic is deleted.
Since the script is inserted on openproject, you'll have to close and reopen your project.
The plug-in is not required if MPI is open.
Credit to MPI is required if using this plug-in in distributable projects.

on openproject
  PlugDividers
end openproject
on closeproject
  unPlugDividers
end closeproject

on PlugDividers
  global mPI_Active
  if mPI_Active=true then return ""
  insert script of (the PI_divplug of this proj) into back 
end PlugDividers 


on unPlugDividers
  remove script of (the PI_divplug of this proj) from back 
end unPlugDividers