Workspace Render To File

Smart people ~ Great Scripts
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Workspace Render To File

Post by trueBlue »

Code: Select all

D3DView.RenderToFile('', 'auto')
Description:
First [ '' ] part is the active 3D View
bsWinID Specifies the WinID for which the rendering is performed
Second part [ 'auto' ] renders immediate screenshot using current settings
bsMode Specifies the mode of the rendering
Empty string for settings dialog


Using the above command [ Snapshot script ] hooked up to a Timer Stop Event, I was able to run another Timer and Scripts to render a sequence of images without errors
Note: You need to setup Render to File first!

Uncheck "Save animation from frame"
This will cause an Error!
Attachments
Snapshots.png
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace Render To File

Post by trueBlue »

tS76 Snapshot
Snapshot.png
Snapshot.png (5.18 KiB) Viewed 52 times
Render to File icon
LMB - Sets the Render to File
RMB - Opens Folder

Reset - Sets the Render to File
Save sequence starting with = 0
Anim View - Start Frame

Frames - Number of Frames to Render
Period - Speed of which Frames are Rendered
Frames - Current Frame being Rendered
Render Frames - Starts the process

This process supports Rendering while scripts,
Activities, and Timers are running
Render to File option,
Save animation from frames
is not supported while scripts are running

Set - Render to File on first use!
Optional
Uncheck - Reset to continue rendering
additional frames

Special thanks to Clinton for the scripts to set the Render to File
.
.
Snapshots.gif
Snapshots.gif (1.58 MiB) Viewed 39 times
.
Quick example using Snapshot to render 200 frames, which is an Activity, and the Worm Eater scripts are running by a Timer
Worm's Head color is using a Random Color generator
Cubes are animated
Attachments
Snapshot.RsObj
(116.5 KiB) Downloaded 7 times

Return to “Scripts and SDK”