void nodeManager::setNode(ofPtr<clamourNode> target, clamourNode &temp) { target->endEvents(); target->endSound(); target->setSoundData(temp.getSoundData()); target->setChanged(CLAMOUR_SOUND); target->setDrawData(temp.getDrawData()); target->setEnvType(temp.getEnvType()); target->setAttSecs(temp.getAttSecs()); target->setDecSecs(temp.getDecSecs()); target->setCanSleep(temp.getCanSleep()); target->setIsRotate(temp.getIsRotate()); target->setShiftAmount(temp.getShiftAmount()); target->setEvents(temp.getEvents()); target->setReactions(temp.getReactions()); target->setSounds(temp.getSounds()); target->setIsCollidable(temp.getIsCollidable()); target->setIsDistributable(temp.getIsDistributable()); target->init(); target->reconcileSlaves(); //now create an edgeTemplate if(target->getDrawData().getName() != "none") { ofPath p; pathFactory::createPath(p, target->getDrawData().getShapeType(), 1.0,1.0, target->getDrawData().getParameter("size").abs_val); target->setEdgeTemplate(p); } target->setIsSleeping(target->getCanSleep()); //wake up the node }