|
.....
MStatus initializePlugin(MObject obj){
...
MStringArray res_;
MS=MGlobal::executeCommand(MString("polySphere"),res_,true,true);
...
hi,
I am newbie on maya API.
Creating some polySpheres with this couple o’line.(which’re inner initializePlugin) but if I attempt to delete polySpheres in viewport manually(via select and del)
only the first created polySphere cannot be deleted and throws error.
selected first polySphere1.pressed DEL button once and here is clear result:
doDelete;
// Error: Connection not made: ‘pSphereShape1.instObjGroups[0]’ -> ‘initialShadingGroup.dagSetMembers[0]’. Connections cannot be modified during evaluation. //
// Error: Connection not made: ‘pSphereShape1.instObjGroups[0]’ -> ‘initialShadingGroup.dagSetMembers[0]’. Connections cannot be modified during evaluation. //
// Error: Connection not made: ‘pSphereShape1.instObjGroups[0]’ -> ‘initialShadingGroup.dagSetMembers[0]’. Connections cannot be modified during evaluation. //
// Error: Connection not made: ‘pSphereShape1.instObjGroups[0]’ -> ‘initialShadingGroup.dagSetMembers[0]’. Connections cannot be modified during evaluation. //
// Error: Connection not made: ‘pSphereShape1.instObjGroups[0]’ -> ‘initialShadingGroup.dagSetMembers[0]’. Connections cannot be modified during evaluation. //
// Error: Connection not made: ‘pSphereShape1.instObjGroups[0]’ -> ‘initialShadingGroup.dagSetMembers[0]’. Connections cannot be modified during evaluation. //
// Error: Connection not made: ‘pSphereShape1.instObjGroups[0]’ -> ‘initialShadingGroup.dagSetMembers[0]’. Connections cannot be modified during evaluation. //
// Error: Connection not made: ‘pSphereShape1.instObjGroups[0]’ -> ‘initialShadingGroup.dagSetMembers[0]’. Connections cannot be modified during evaluation. //
|