Grasshopper

algorithmic modeling for Rhino

To make Rhino WallPaper play *.jpg files as a video player.The fps is unstable.At first it displays about 30 pictures per second.Then it become more and more slower.

  private void RunScript(bool x, object y, ref object A)
  {
    string str = @"D:\Program Files\The KMPlayer\Capture\bad (" + (I).ToString() + ").jpg";
    I++;
    if(I > 6472)I = 1;
    RhinoDoc.ActiveDoc.Views.ActiveView.ActiveViewport.SetWallpaper(str, true, true);
    owner.ExpireSolution(x);
  }

int I=1;

Views: 387

Attachments:

Replies to This Discussion

Adjusting the wallpaper to play videos is a phenomenally bad use of that feature. Rhino will cache these bitmaps leading to ever increasing 3dm file sizes.

I don't think there's anything in Rhino that can be used effectively to play video, as textures are cached as well. You'll have to ask on our Discourse forum whether anyone has a better idea on how to do this.

--

David Rutten

david@mcneel.com

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service