sidebar features
sidebar content

Go Back   Blender Artists Forums > Support > Basics & Interface

Reply
 
Thread Tools
smdnetau smdnetau is offline
 
Join Date: Dec 2005
Posts: 2
I love the new fluid sim in 2.4. My question is regarding exporting the objects in sequence to other 3d formats. Presently the only way I can do it is by exporting the mesh at each frame of the animation to an .obj for example. I know zilch about python scripting. Is there a simpler way to do this? Hitting file/export 250+ times is somewhat boring.

Regards
#1   Old 20-Dec-05, 05:45   
Reply With Quote


ideasman42's Avatar
ideasman42 ideasman42 is offline
Member
 
Join Date: Mar 2004
Location: Australia
Posts: 3,488
In the obj export script obj_export.py, comment out the FileSelector call and replace with.
Code:
# Commented file selector line. # Window.FileSelector(save_obj, 'Export Wavefront OBJ', newFName('obj')) outfile = 'c:\\temp\\anim_obj_' # Use this to set the output path. scn = Scene.GetCurrent() context = scn.getRenderingContext() frames = range(context.startFrame()+1, context.endFrame()+1) for frame in frames: context.currentFrame(frame) scn.update(1) save_obj('%s%.4d.obj' % (outfile, frame))
............................................
BPython Cookbook * How to get features into Blender * Code Metrics
Hire Me
ideasman42<at>gmail.com
#2   Old 20-Dec-05, 06:21   
Reply With Quote
smdnetau smdnetau is offline
 
Join Date: Dec 2005
Posts: 2
Brilliant. Thanks very much!
#3   Old 21-Dec-05, 00:09   
Reply With Quote
LetterRip LetterRip is offline
Donating Member
 
Join Date: Mar 2004
Posts: 2,564
cambo,

it might be worthwhile to edit the main script to allow the user to choose eithier regular export or sequence of frames

LetterRip
#4   Old 29-Dec-05, 01:01   
Reply With Quote
sumatra_invitro's Avatar
sumatra_invitro sumatra_invitro is offline
Member
 
Join Date: Jan 2006
Location: Brazil
Posts: 33
How can I do that in OSX version?
#5   Old 13-Jan-06, 03:05   
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:41.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists