Grasshopper

algorithmic modeling for Rhino

Hi! 

I have no Rhinoscript expericence :(

Can someone help me to animate an object via Rhinoscript? Simply to animate a clipping plane and get a screen recording of it, passing through a scene. It should go along the Z-axis, moving up.

I know I can do this in a better Qualitty as a Randeringanimation via GH; but I need a very quick and cheap solution.

I guess by the logic it would be something based on if i < 300 i == i++,

and for each count the object would be moved up a value too. But I have no clue of Rhinoscript, how to reference an object in it, etc. and really not the time to get into it at the time. 

Would be amazing if someone could help me out!

Views: 2811

Replies to This Discussion

Okay, I found a good starting point here http://www.giuliopiacentino.com/adding-motion-in-rhinoscript/

It animates a sphere along a spline. I can change the sphere to any object if I add to the top:

Dim strObject
strObject = Rhino.GetObject("select plane to move")

and change the later lines:
Dim myPoint: myPoint = Rhino.AddSphere(Array(-1, -29, 9), 0.4) 

into

Dim myPoint: myPoint = strObject

But if I select a clipping plane as an object I get a VB-Script Error, stating the types are incompatible, something about Rhino.SurfaceAreaCentroid. I need to set the point to move the clipping plane from differently, right? If so.... how? :(

I don't know why, but I was simply too tired. The animation can of course simply be done in GH and not rendered but filmed. I managed via http://datable.net/animated-clipping-planes-in-rhinoceros/ .

Thanks anyway.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service