PointPicker scripting

 From:  Michael Gibson
10802.6 In reply to 10802.5 
Hi Brian,

re:
> So I can either convert cPlane1 to cPlane2 with a new base point, which I still do not know how to do.?

I'm a little confused by your question, are you maybe getting the "base point" for the pointpicker mixed up with the origin point of a MoiCoordinateFrame object? Those are different things.

You can set the origin of a MoiCoordinateFrame object like this:
cPlane2.origin = pt;


> Or else, I can open a 2nd pointpicker, and feed the new base point to it by script, not by manual pick,
> and get the cPlane2 from the second pointpicker.ptframe.?

I may need you to describe a little more about what you're trying to do with cPlane2.

Is the confusing part maybe that you're trying to use cPlane1 and cPlane2 for separate things but they are both referring to the same MoiCoordinateFrame object?

If you want an independent frame try creating a new one using:

var cPlane2 = moi.vectorMath.createFrame();

cPlane2.xaxis = cPlane1.xaxis;
cPlane2.yaxis = cPlane1.yaxis;
cPlane2.zaxis = cPlane1.zaxis;
cPlane2.origin = pt;

- Michael