So it sounds you don’t need my code snipped…
[java]import java.io.FileInputStream;
import java.io.InputStream;
import java.util.concurrent.atomic.AtomicReference;
import jme3blend.BlenderFile;
import jme3blend.FileBlock;
import jme3blend.any.ObjectData;
/**
*
-
@author madlion
*/
public class Main {
/**
-
@param args the command line arguments
*/
public static void main(String[] args) throws Exception {
FileInputStream fileInputStream = new FileInputStream("plane_grouptest.blend");
AtomicReference<InputStream> ref = new AtomicReference<InputStream>(fileInputStream);
BlenderFile file = BlenderFile.create(ref);
for (FileBlock fileBlock : file.getBlocks("OB")) {
ObjectData objectData = ObjectData.create(fileBlock);
System.out.println(objectData.getName());
}
// BlenderLoader.dumpSDNA("cube.blend", "SDNA.html");
}
}[/java]