Vray animation

Hi guys, first I want to say this is really cool, Im happy to join the new froum!!!

Still, about the slider animation, I pasted the following code in the vb component, but the vb turns to red, what should I do to make it right?

Dim i As New Integer
Dim x_i As New OnBrep
Dim count As New Integer
count = x.Count()
Dim obj_list As New List(Of IRhinoBrepObject)
For i = 0 To count - 1
x_i = x(i)
Dim obj As IRhinoBrepObject = doc.AddBrepObject(x_i)
obj_list.Add(obj)
doc.Regen()
Next


Dim filename As String = "C:\wherever\whatever" & y & ".bmp"


app.RunScript("-_Render")
app.RunScript("-_SaveRenderWindowAs """ & filename & """")
app.RunScript("-_CloseRenderWindow")


For i = 0 To count - 1
doc.DeleteObject(New MRhinoObjRef(obj_list(i)), True, True)
Load Previous Replies
  • up

    Fan Zhang

    Anyone tried it on the new vb.net common? It doesn't seem to work. They don't have many of the constructors anymore.
    4
  • up

    puikincz

    hi guys

    giulio's gh component, but i can't work out how it could call a vray material, and if i use the component called "material" in the gh file, the emissive of the material seems not working (or not working as vray material layer) and can't control the intensity as well.... any components/scripts could do that?? i'm keen to use the ability of time-based variation of lighting parameters to get on my works....

    cheers

    puikincz

    • up

      Dalia Hafiz

      Hi, I am trying to use this tool, but I am trying to apply it on a DIVA daylighting analysis renderer, it's not one of the Rhino default renderer, but it's a plugin in Grasshopper, it can create images and I wanted to use these images properties.

      I would like to know if there is a way to set the script to read from another plugin in stead of the default render??

      In other words....Can I make let's say Flamingo automatically change to the same day/time/location of another plugin (DIVA)???

      Any help is highly appreciated!!