Hi all,
Is there a command to get the number of frames from a X_LOADOBJ? I want to give an .exe to my artist so he can view animated models as he works on them, but I don't know the number of frames in advance.
no. Can you try what you get with X_GETFACE and a frame that does not exist? Is the face[] array empty then?
I added the following lines to the animation sample:
X_GETFACE 1,1,0,face[]
PRINT BOUNDS(face[],0),1,10
INPUT a$,1,100
X_GETFACE 1,1129,0,face[]
PRINT BOUNDS(face[],0),1,30
INPUT a$,1,100
In debug mode, this returned 3 in both cases. In non-debug, it crashed after the first input$. I tried doing the nonexistent frame first, and the output was still 3 in debug.
uhm... Is there a bug then?