Its not a very elegant solution at all. I used it on a project a few months back and it worked, but there were corrupted memory errors and crashes. It does get the job done, but you won't be able to just "set it and forget it". You'll need to check back on it quite often as some errors will stop the animation process and you may have to restart the whole animation (you should be able to pick it up from where you left off though). Keep in mind that this is for a large animation that baked a ton of geometry and had material assignments and everything. So chances are that load was also contributed to those errors popping out. On small ones with very simple operations its not that bad.
As a note, the code supplied above will only work for ONE object being supplied to the component. If you supply multiple objects, then you'll render for each object. Each image will only have one of the objects that you intend to bake, and the image will be overridden for every object that's specified... so for multiple objects it will take some tweeking. -Damien On Jan 20, 11:11 am, visose <[email protected]> wrote: > I haven't tried it yet but that looks really useful. David should have > posted this on the newsgroup as soon as he wrote it. I remember he > said something about a problem flooding the undo buffer. I hope those > commands still work for the new VFB. > > On Jan 20, 4:36 pm, damien_alomar <[email protected]> wrote: > > > Through a scripting component, it is possible to manually bake the > > geometry (add it to the document) and render it. However, you've got > > to also delete the object after you're done with it. I used this on a > > project not too long ago. Here's the base code that David supplied me > > with. It will most likely need some modification to do what you're > > looking for, but at least its a starting point...throw this into a VB > > component and name the variables accordingly to try out > > > Dim obj As IRhinoBrepObject = doc.AddBrepObject(x) > > doc.Regen() > > > Dim filename As String = "C:\GH_Animation\frame" & Chr(34) & y & > > Chr(34) & ".bmp" > > > app.RunScript("-_Render") > > app.RunScript("-_SaveRenderWindowAs "& Chr(34) & filename & Chr > > (34) ) > > app.RunScript("-_CloseRenderWindow") > > > doc.DeleteObject(New MRhinoObjRef(obj), True, True) > > > hth > > Damien > > > On Jan 20, 10:20 am, dexter <[email protected]> wrote: > > > > didnt knew that you can adjust the antialiasing in viewport. > > > thanks - ot makes it slightly better...
