Grasshopper

algorithmic modeling for Rhino

Hello,

I want to animate slider to generate motion capture. Slider list is continuous.

But i want to name each frame with desired naming system(numbering)

For eg,

1st Frame - View 05

2nd Frame - View 08

3rd Frame - View 09

4th Frame - View 11

and goes on... 

Note:I have in each frame custom color preview / line thicknes for each lines 

Is there is any ways to get this result.

Thanks in advance

Views: 2972

Replies to This Discussion

Hi Daniel,

thanks for this. While trying to screen capture an Neon animation, I tried to modify this, but I am struggling with handling the events.

With the timer I want to set the interval, I will give for Neon to render in each frame.

What I am trying to do is, first capture the image and then move to the next location.

How would I do this?

Thanks, p

So this was driving me crazy, since I could not find my mistake.

Finally it is solved, apart from fully understanding the "why", but for the protocol:

The different methods suggested in your component produced various results:

- Dim view As rhino.Display.RhinoView = RhinoDocument.Views.ActiveView
      Dim image As bitmap = view.CaptureToBitmap(New size(W, H), False, False, False)
      image.Save(FName)

will for some reason  not output the actual view at the time but have a stage rendered earlier (???)

using


- rhino.RhinoApp.RunScript("-ViewCaptureToFile " & FName , True)

will cause Neon to re-render the image before saving it (like "-print" does)

- rhino.RhinoApp.RunScript("-ScreenCaptureToFile " & FName, True)

saves the screen-shot at the current state (what I wanted to do)

Maybe someone can still enlighten me on the why?

Best, p

...

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service