int indexInST=findIndex(thisOne.name); for (int j=0;j<thisOne.track.size();j++){ KeyframeInfoChunk.KeyPointInTime thisTime=(KeyframeInfoChunk.KeyPointInTime) thisOne.track.get(j); if (thisTime.rot!=null) st.setRotation(indexInST,thisTime.frame,thisTime.rot); if (thisTime.position!=null) st.setPosition(indexInST,thisTime.frame,thisTime.position); if (thisTime.scale!=null) st.setScale(indexInST,thisTime.frame,thisTime.scale);
int indexInST = findIndex( thisOne.name ); for ( Object aTrack : thisOne.track ) { KeyframeInfoChunk.KeyPointInTime thisTime = (KeyframeInfoChunk.KeyPointInTime) aTrack; if ( thisTime.rot != null ) { st.setRotation( indexInST, thisTime.frame, thisTime.rot ); } if ( thisTime.position != null ) { st.setPosition( indexInST, thisTime.frame, thisTime.position ); } if ( thisTime.scale != null ) { st.setScale( indexInST, thisTime.frame, thisTime.scale ); }
    private void putTranslations() {        if (keyframes==null) return;        int spatialCount=0;        for (int i=0;i<spatialNodes.size();i++)            if (spatialNodes.get(i) instanceof Spatial) spatialCount++;        st=new SpatialTransformer(spatialCount);        spatialCount=0;        for (int i=0;i<spatialNodes.size();i++){            if (spatialNodes.get(i) instanceof Spatial){                st.setObject((Spatial) spatialNodes.get(i),spatialCount++,getParentIndex(i));            }        }        Object[] keysetKeyframe=keyframes.objKeyframes.keySet().toArray();        for (int i=0;i<keysetKeyframe.length;i++){            KeyframeInfoChunk thisOne=(KeyframeInfoChunk) keyframes.objKeyframes.get(keysetKeyframe[i]);            if ("$$$DUMMY".equals(thisOne.name)) {                continue;            }            int indexInST=findIndex(thisOne.name);            for (int j=0;j<thisOne.track.size();j++){                KeyframeInfoChunk.KeyPointInTime thisTime=(KeyframeInfoChunk.KeyPointInTime) thisOne.track.get(j);                if (thisTime.rot!=null)                    st.setRotation(indexInST,thisTime.frame,thisTime.rot);                if (thisTime.position!=null)                    st.setPosition(indexInST,thisTime.frame,thisTime.position);                if (thisTime.scale!=null)                    st.setScale(indexInST,thisTime.frame,thisTime.scale);            }        }        st.setSpeed(10);    }