Forum: Poser Python Scripting


Subject: What is the mystery frame incrementer?

HartyBart opened this issue on Aug 12, 2021 ยท 13 posts


structure posted Mon, 06 September 2021 at 3:16 AM Forum Coordinator

from what I can tell, both ka and h would need a value, there is nothing telling the script what ka is - it is not a poser object or you would see something like

scene.SetFrame(poser.kCMDka * 10 + h)

it is likely a frame counter as in :

scene.SetFrame( ka * 10 + h )

Since setframe requires a frame number

SetFrame
Explanation
Set the current frame number. All frame numbers in PoserPython are relative to
a starting frame of 0. For this reason, a frame number in Python is 1 less than the
equivalent frame as referenced from the Poser GUI.
Arguments
Enter a valid frame number.
Syntax
 SetFrame( frame )
Example
scene.SetFrame(23)

and the only options available are the increments :

SetFrameOptions
Explanation
Set the values for frame rate and increment.
Arguments
Enter two integer values, for frame rate and frame increment respectively
Syntax
 SetFrameOptions( rate,  increment )
Example
moviemaker.SetFrameOptions(24, 4)

so ka is likely the start frame, multiply that 10 and add h for the resulting frame number ( I am sure there is a typo with the " = " )

Locked Out