I have a rather simple question for you.
I have imported some models from make human and with the help of mocap tool for importing .bvh files, I have imported some movements.
I would like to set the start frame and the end frame (through script), but I am a bit confused. I have thought two ways that I could do that.
Set through the mocap tool. So I use the following code
import bpy
import os
scn = Scene.GetCurrent()
context = scn.MhxStartFrame(1)
but I get the error name 'Scene' is not defined
Maybe I could do it through NLA Editor after it is imported?
Have you any clue? Because I haven’t find so far!
Well, I see what you are saying, but by that I set the first and last frame of the current scene, right?
And afterwards, I can see the result in the timeline. The thing is that I would like to import 3 different .bvh files and place them one after another. That is why, for each one, I would like to set the frame “MhxStartFrame” and the End Frame.
I don’t know if I am understood:)
Thanks both of you by the way, because I have to solve this problem, this afternoon:)
I haven’t used the Makehuman importer, but when you’re defining:
scn = bpy.context.scene
scn.MhxStartFrame
There is no MhxStartFrame in the blender api, that addon might support it. But like I said, i haven’t used the Makehuman inmport. Maybe upload a few sample mhx files to test.
I know, that was my problem from the beginning, but this one works:)
Still, this wasn’t what I was looking for…I found the solution with the help of NLA Editor:)