//change the 5d position of all rois
//set posZ,T to the value you want
//select the rois you want to change
//for "ALL" just use -1
importClass(Packages.icy.type.point.Point5D)
seq = getSequence()
if (seq == null) throw "Please open a sequence first"
rois = seq.getROIs()
if (rois.isEmpty()) throw "No ROI on the sequence"
size = rois.size()
posZ = -1;
posT = -1;
//posX = 0;
//posY = 0;
for(i = 0;i< size ;i++ )
{
roi = rois.get(i)
if(roi.isSelected())
{
pos = roi.getPosition5D()
pos.setZ(posZ)
pos.setT(posT)
//pos.setX(posX)
//pos.setY(posY)
roi.setPosition5D(pos);
}
}