thanks Taz!
I am trying to render more than one Brep object (the slider will
switch on and off different brep objects). What do you advice me to
do?
I am also trying to apply materials (I use both Flamingo and Brazil)
but end up having only a grey basic material. Why is that? I can see
the material in the viewport preview but not in the render...
thanks!

kiara




On May 7, 9:19 pm, taz <[email protected]> wrote:
> Patrick,
>
> It's hard work pretending to be Damien.
>
> Anyway, I played around with the script and I got it to work so here's
> a couple things to note:
>
> _The VB component updates with GH events (unless you disable the
> setting under Solutions).  Updating with GH events is what you want
> when you are rendering out theanimation(as the slider ticks along),
> but before that any changes you make in GH will also cause a render to
> occur.
>
> _It may help you to set the x variable hint type to OnBrep as a
> reminder.  The script is only setup to render a single BRep object.
>
> _Elizabeth was right.  The extra double quotes in my .jpg file name
> wont allow the file save.  The double quotes symbol is represented by
> the variable Chr(34) so removing them solves the problem.  For
> example:
>
> Dim filename As String = "C:\GH_Animation\frame" & y & ".jpg"
>
> -taz
>
> On May 7, 5:53 am, Patrick <[email protected]> wrote:
>
>
>
> > taz,
>
> > I tried different things: changing file types like png, jpg or bmp. (I
> > have to mention that I count myself completely to the script virgins)
> > I just inserted the code from Damien into a VB comp. If I connect an
> > object (i.e. geometry inside a bounding box) to the x input rhino
> > immediately starts to render an image. If I then connect a number
> > slider (which is also rotating the bbox geo) into the y input of the
> > VB comp it does the same thing again. For ananimationfrom stills I
> > just need to animate the slider in a usual way and GH starts to
> > extract stills from slider positions and synchroniusly tells rhino to
> > render the scene invray.
>
> > It all seems to work well but the destination folder remains empty!
>
> > On 7 Mai, 09:23, taz <[email protected]> wrote:
>
> > > Patrick,
>
> > > From the code it looks like your slider should be attached to a
> > > variable named "y" and the output to your destination folder (on your
> > > D:\ drive in a folder named GH_Animation) should be a .bmp.
>
> > > Is that what you have for a setup?
>
> > > -taz
>
> > > On May 6, 11:42 am, Patrick <[email protected]> wrote:
>
> > > > He guys
>
> > > > foranimationpurposes I tried out a small VB script from Damien
>
> > > >  Dim obj As IRhinoBrepObject = doc.AddBrepObject(x)
> > > >     doc.Regen()
>
> > > >     Dim filename As String = "D:\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)
>
> > > > I made it that Rhino is obviously rendering all images choosen from an
> > > > animated slider connected to the component. It shows me "Image
> > > > successfully saved as D:\GH_Animation\frame"4".jpg" in the command
> > > > line but the destination folder remains empty!
>
> > > > Can you help Damien?- Hide quoted text -
>
> - Show quoted text -

Reply via email to