Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / Connections cannot be modified during evaluation?
  RSS 2.0 ATOM  

Connections cannot be modified during evaluation?
Rate this thread
 
58541
 
Permlink of this thread  
avatar
  • dmorton
  • Posted: 29 July 2011 03:49 AM
  • Total Posts: 3
  • Joined: 29 July 2011 10:45 AM

.....
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. //



Replies: 0
avatar
  • dmorton
  • Posted: 29 July 2011 03:52 AM

also getting this error sometimes.
A Note: polySpheres created by cloned line of :
MS=MGlobal::executeCommand(MString("polySphere"),res_,true,true);

polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;
polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;
polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;
polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;
polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;
polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;
polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;polySphere;
polySphere;polySphere;

// Error: Invalid expression type for IF test condition. //

// Error: Invalid expression type for IF test condition. //

// Error: Invalid expression type for IF test condition. //

// pSphere65 polySphere65 //



Replies: 1
/img/forum/dark/default_avatar.png

examining the Maya SDK.
trying to executecommand on my plugin loaded.and defining a plugin command is not neccessary for me.
just wantto build some object when plugin loaded.

so using executeCommand in initializeCommand is unsafe ?
ifso in which class or classmembers should I have to call executeCommand?

so I have to define a command class and have to use excutecommand inside it ?or wht this kind of weird errors and
yes,need to know how can avoid this problem ?

Author: dmorton

Replied: 29 July 2011 04:06 AM