going to try this out to make some nice grasshopper porn next month
for a high profile project we're doing, soon to be under construction.
thanks for the tip, fellas.

On Mar 2, 5:11 am, damien_alomar <[email protected]> wrote:
> JP,
>
> Here's the code that David sent me.  From there you'll have to add any
> renderer specific calls.  You can do this by using the RunScript
> method which basically allows you to do macros from the dotNet
> script.  App.RunScript ("YourMacroHere")
>
> From David:
> To make a rendering all you need to do is add the geometry. If you
> assign materials to layers you can also control materials in that way,
> or make your script even more specific by actually replacing an
> existing BRep object with your new geometry That way you can inherit
> material assignments without problems and even texture mapping widgets
> are probably kept intact. In this case your VB script of course needs
> to know the ID of the object(s)? you're working with.
>
> These are the steps you need:
>
>  Sub RunScript(ByVal x As OnBrep, ByVal y As String)
>    Dim obj As IRhinoBrepObject = doc.AddBrepObject(x)
>    doc.Regen()
>
>    Dim filename As String = "C:\GH_Animation\frame" & y & ".bmp"
>
>    app.RunScript("-_Render")
>    app.RunScript("-_SaveRenderWindowAs """ & filename & """")
>    app.RunScript("-_CloseRenderWindow")
>
>    doc.DeleteObject(New MRhinoObjRef(obj), True, True)
>  End Sub
>
> but be careful since this thing will trigger a Render EVERY time you
> change the inputs. You may want to add an additional input (boolean
> toggle) which disables the VB component.
>
> HTH,
> Damien
>
> On Mar 1, 1:41 pm, qwer <[email protected]> wrote:
>
> > Hi Damien..
> > great.. well done..
> > i d just like to ask how did u exactly render the thing.. i mean the
> > sequence of the rebaking geometry..
> > could u possibly upload the script with some cool hints?<
> > i ve made a more complex project recently that i d like to bring to
> > the life..
> > its a pity that there is no possibility to present the GH advantages
> > in richer animations.. still images aren't sometimes showing enough..
> > hope i haven't missed some lesson)
> > thanx in advance
> > JP
>
> > On Feb 25, 3:56 am, damien_alomar <[email protected]> wrote:
>
> > > Thanks Luis.  It was a cool project to do.  95% of it came together in
> > > about less than a week.  It was all fun and games until getting the
> > > geometry out of GH to render it.  I kept on running into memory issue
> > > on the 32-bit machines that I was using.  The last 5% (the search
> > > adjustments and images for the clouds) were all done on my 64 bit
> > > machine which ran a lot smoother.  Regenerating the solution still
> > > takes about 45secs to a minute though.
>
> > > Thanks Chris. The canvas is just patched together from multiple
> > > screenshots...I think in order to see that whole definition at that
> > > scale you'd need an array of about 4-6 30in monitors.  Even on my two
> > > 24" monitors zoom all is at about 50%.
>
> > > Best,
> > > Damien
>
> > > On Feb 24, 7:56 pm, Chris Wilkins <[email protected]> wrote:
>
> > > > Awesome. How did you get such a large image of the GH canvas?
> > > > -Chris
>
> > > > On Feb 24, 5:06 pm, fraguada <[email protected]> wrote:
>
> > > > > Thanks for the text on the project Damien...great to read the
> > > > > description of this...the project is quite nice!
> > > > > Luis
>
> > > > > On Feb 24, 10:05 pm, damien_alomar <[email protected]> wrote:
>
> > > > > > Hey everybody...I just put one of the last Grasshopper projects 
> > > > > > that I
> > > > > > worked on up on my blog.  Its a bridge installation in Paris that 
> > > > > > was
> > > > > > done all through GH with the help of a lot of custom scripted
> > > > > > components.  Hope you take a look at it and enjoy it.  I should be
> > > > > > posting a few more images from it in a few days.
>
> > > > > >liquidtectonics.blogspot.com
>
> > > > > > Best,
> > > > > > Damien- Hide quoted text -
>
> > > > > - Show quoted text -

Reply via email to