I have made a script to generate a game asset in one click ( http://blenderartists.org/forum/showthread.php?383624-Dark-Blender-(Official-Thread)-optimized-for-sculpting-and-game-asset-creation ). My script save the textures by doing a render and import them with the .0001 number meaning frame 1. If the frame is changed my script is unable to find the texture.0001 so i want to set at the beginning of my Python script the frame to 1.
(For Blender 2.83+) In order to advance to the next frame, get the frame you're on currently and add one to it. Set that using
currentFrame = bpy.data.scenes['Scene'].frame_current bpy.data.scenes['Scene'].frame_set(currentFrame + 1)
currentFrame + 1 with the frame number you want:
This assumes you're in the default scene, 'Scene'. In 2.83...
...still works for whatever scene you happen to be in.