listLightLinksCmd/listLightLinksCmd.cpp
#include <maya/MSimple.h>
#include <maya/MLightLinks.h>
#include <maya/M3dView.h>
#include <maya/MDagPathArray.h>
#include <maya/MSelectionList.h>
#include <maya/MDagPath.h>
#include <maya/MGlobal.h>
#include <maya/MStringArray.h>
#include <maya/MItSelectionList.h>
#include <math.h>
{
clearResult();
bool parseStatus;
if( !parseStatus )
{
setResult( "Error parsing light links\n" );
}
char resultString[512];
{
newSelection.
merge( objects );
sprintf( resultString, "Selecting objects linked to light %s",
}
else
{
for(
unsigned int j = 0; j < lights.
length(); j++ )
{
newSelection.
add( path );
}
sprintf( resultString, "Selecting lights linked to object %s",
}
setResult( resultString );
return stat;
}