Better way to load multiple models ?

Dec 8, 2013 at 5:10 PM
I was wondering if there is a better way to do this :
            ObjReader CurrentHelixObjReader = new ObjReader();
            neutral = CurrentHelixObjReader.Read("C:/Users/Roger/Desktop/cutie1/cutie.obj");

            ObjReader CurrentHelixObjReader2 = new ObjReader();
            anger = CurrentHelixObjReader2.Read("C:/Users/Roger/Desktop/cutie1/cutie_ExpressionAnger.obj");

            ObjReader CurrentHelixObjReader3 = new ObjReader();
            smile = CurrentHelixObjReader3.Read("C:/Users/Roger/Desktop/cutie1/cutie_ExpressionSmileOpen.obj");

            ObjReader CurrentHelixObjReader4 = new ObjReader();
            blink = CurrentHelixObjReader4.Read("C:/Users/Roger/Desktop/cutie1/cutie_ModifierBlinkLeft.obj");
So you can see I am loading 4 models.

I was thinking I could do this, but the individual models do not load, I think it's just loading the first one four times but I am not sure.
            ObjReader CurrentHelixObjReader = new ObjReader();
            neutral = CurrentHelixObjReader.Read("C:/Users/Roger/Desktop/cutie1/cutie.obj");
            anger = CurrentHelixObjReader.Read("C:/Users/Roger/Desktop/cutie1/cutie_ExpressionAnger.obj");
            smile = CurrentHelixObjReader.Read("C:/Users/Roger/Desktop/cutie1/cutie_ExpressionSmileOpen.obj");
            blink = CurrentHelixObjReader.Read("C:/Users/Roger/Desktop/cutie1/cutie_ModifierBlinkLeft.obj");
Feb 15, 2014 at 6:00 PM
Still stuck on this, anyone have any ideas ?
Coordinator
Feb 18, 2014 at 7:39 AM
The first code is correct, but I am considering adding an issue on refactoring the importers so it looks more like the second version. The exporters were recently refactored so they could be reused.