Hi all,
I have a Multiprocessor that shoudl execute five processes. After each Process the 3DShape of the Item should change. So I set four "Change 3DShape" Trigger on Processfinish. But only after finishing the first Process the Shape gets changed to the last of the four shapes I set. After the second, thirs, fourth and fith process nothing changes.
I think I have to tell each trigger after which process step they should be executed but unfortunatly I don't know how. Could you giev me some advice?
This is the Basic Code I got for the first two shape changes. Can you tell me how to modify each change so that it gets related to the Process?
treenode item = param(1); treenode current = ownerobject(c); int opnum = param(2); { // ************* PickOption Start ************* // /***popup:Change3DShape*/ /**Change 3D Shape*/ treenode involved = /** \nObject: *//***tag:object*//**/item/**/; string shapename = /** \nShape: *//***tag:shapepath*//**/"fs3d\\FlowItem\\Frame.3ds"/**/; double theindex = getshapeindex(shapename); //Grab the current size of the object double x = xsize(involved); double y = ysize(involved); double z = zsize(involved); setname(shape(involved),"_shape"); setobjectshapeindex(involved,theindex); //Update the object to the original size applyshapefactors(involved); setsize(involved, x, y, z); /** \nNote: The getshapeindex command is slow if it is called frequently. It is better to define the shape index in a global variable that gets set during reset. You can then replace getshapeindex with the name of your global variable. Index values for 3D shapes can be found through the Tools>Media Files menu, but keep in mind that index values can change when new media is loaded.*/ } // ******* PickOption End ******* // { // ************* PickOption Start ************* // /***popup:Change3DShape*/ /**Change 3D Shape*/ treenode involved = /** \nObject: *//***tag:object*//**/item/**/; string shapename = /** \nShape: *//***tag:shapepath*//**/"fs3d\\FlowItem\\Tote.3ds"/**/; double theindex = getshapeindex(shapename); //Grab the current size of the object double x = xsize(involved); double y = ysize(involved); double z = zsize(involved); setname(shape(involved),"_shape"); setobjectshapeindex(involved,theindex); //Update the object to the original size applyshapefactors(involved); setsize(involved, x, y, z); /** \nNote: The getshapeindex command is slow if it is called frequently. It is better to define the shape index in a global variable that gets set during reset. You can then replace getshapeindex with the name of your global variable. Index values for 3D shapes can be found through the Tools>Media Files menu, but keep in mind that index values can change when new media is loaded.*/ } // ******* PickOption End ******* //Thanks ans best regards!