Community
Alias Forum
Welcome to Autodesk’s Alias Forums. Share your knowledge, ask questions, and explore popular Alias topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Rendering storyboard slides in Showcase

1 REPLY 1
Reply
Message 1 of 2
brainspoon
847 Views, 1 Reply

Rendering storyboard slides in Showcase

Hi,

I am trying to render storyboard slides with a python script, but I have quite some trouble doing this.
The most difficult part is to define a specific frame rate and then render the slide at each frame.
Right now I am doing this with a loop that is controlled by messages.
But often frames are missed or they are closer together than the defined frame rate.
I hope someone can help me with this.

Here is a part of the script:

while not isFinished:
if not isPlaying:
isPlaying=True
self.sendMessage( "SLIDE_PLAY", ((self.mySlideId,),))
self.sendMessage( "AT_DELAY", (1.0/float(TheFramesPerSecond), "SLIDE_PLAY_PAUSE", ()))
if isPaused:
if not isRendering:
isRendering=True
self.sendMessageSync('RT_SWITCH_REQUEST', (True,))
self.sendMessageSync( "SAVE_SCREENSHOT_AT_RESOLUTION", (self.myDirectory + '/'+ root +'_'+ str(currentFrame) + ext,int(TheImageWidth),int(TheImageHeight),3,TheAntiAliasing,False,))
self.sendMessageSync('RT_SWITCH_REQUEST', (False,))
self.sendMessage("FRAMERENDER_FINISHED",())

if isRenderFinished:
if isPaused:
currentTime=timeInfo.getTime()
targetTime=currentTime+1.0/float(TheFramesPerSecond)
isPaused=False
self.sendMessage( "SLIDE_PLAY_RESUME", ())
self.sendMessage( "AT_TIME", (targetTime, "SLIDE_PLAY_PAUSE", ()))



def SLIDE_PLAY_STARTED(self, message):
global doRenderSequence
if doRenderSequence:
global isPlaying
isPlaying=True

def SLIDE_PLAY_PAUSED(self, message):
global doRenderSequence
if doRenderSequence:
global isPaused
isPaused=True

def SLIDE_PLAY_RESUMED(self, message):
global doRenderSequence
if doRenderSequence:
global isPaused
global isRenderFinished
isPaused=False
isRenderFinished=False

def SLIDE_PLAY_ENDED(self, message):
global doRenderSequence
if doRenderSequence:
global isFinished
global isPlaying
global isRendering
isFinished=True
doRenderSequence=False
isPlaying=False
isRendering=False

def FRAMERENDER_FINISHED( self, message 😞
global doRenderSequence
if doRenderSequence:
global isRendering
global isRenderFinished
global currentFrame
currentFrame+=1
isRendering=False
isRenderFinished=True
1 REPLY 1
Message 2 of 2
AlbertoTorres
in reply to: brainspoon

Hello brainspoon.
Showcase 2011 I'm starting with Python and I have a lot of questions to run Python scripts.
- What version of Python I recommend and work with Showcase
- With the leading Showcase Python in your home directory is to schedule fuciente
- As a showcase office modules in python for the scripts, execute and debug.
- You can do debug with open and go Showcase correcting or not.
- Overall support to start with Python customize Showcase from the beginning, and that documentation is not very helpful Showcase to begin and continue.
- You know if there any Internet site specializing in Python Showcase where you can consult.

** Sorry for my English, which is not very good.

Thank you very much, in advance.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report