Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8565

Script to attach polyline/curve to a single Point3d handle

$
0
0

@pagarcia wrote:

Hi all,

Within a script I'm trying to control a whole polyline via a single Point3d called handle. For now I'd be happy if the translation of the handle just causes the translation of all the points of the polyline by the same amount. Later, I'd tune the move of the different polyline points with several weights.

I don't know exactly how to code this, as I'm completely new to developing in Rhino. I have experience from Maya Autodesk, where I coded these objects via nodes and control their dependency with a dynamically override update function. In Rhino, I do not know exactly

  1. Which method should I override that is called at every viewport refresh? Is protected override Result RunCommand (Rhino.RhinoDoc doc, RunMode mode) such a method?
  2. How to access these nodes, i.e. a polyline and the Point3d handle?

Many thanks!

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 8565

Trending Articles