Referencing a point in TransformAxis

   1067   2   1
User Avatar
Member
17 posts
Joined: July 2018
Offline
Hello,

This should be super simple, but I can't do it:

I have a line made with an Add SOP (2 points).
Then I used a Carve SOP to find a point along it.
Next I isolated the point created by the Carve SOP using a Delete SOP.
Then I merged the Add SOP and the Delete SOP.
So I have 3 points and a polyline going into my TransformAxis SOP.

Now I want to use the point generated by the Carve SOP (in the Delete SOP) as the ‘origin’ for the TransformAxis SOP.

How do I do it?

This should be like ABC, what am I missing?!

Any help greatly appreciated.



Ash
Image Not Found
User Avatar
Member
24 posts
Joined: Dec. 2014
Offline
ashcic
Hello,

This should be super simple, but I can't do it:

I have a line made with an Add SOP (2 points).
Then I used a Carve SOP to find a point along it.
Next I isolated the point created by the Carve SOP using a Delete SOP.
Then I merged the Add SOP and the Delete SOP.
So I have 3 points and a polyline going into my TransformAxis SOP.

Now I want to use the point generated by the Carve SOP (in the Delete SOP) as the ‘origin’ for the TransformAxis SOP.

How do I do it?

This should be like ABC, what am I missing?!

Any help greatly appreciated.



Ash
Image Not Found

You can use these 3 expressions in each component of origin

point(“../delete”,0,“P”,0) point(“../delete”,0,“P”,1) point(“../delete”,0,“P”,2)

where the last argument is 0 for x, 1 for y, 2 for z as is integer index, assuming the node which contains the carved point is “../delete”

Or you can right click on origin, then Reference, Scene Data, and find something that fits your need.
In this case delete / Bounding Box / Centroid fills origin with:
centroid(“../delete10”, D_X) centroid(“../delete10”, D_Y) centroid(“../delete10”, D_Z)
and the centroid for a node with one point happens to be at the location of that point.
Edited by alecaille - Aug. 12, 2018 12:52:13
User Avatar
Member
17 posts
Joined: July 2018
Offline
Thanks alecaille!

That's perfect. Works like a charm!

The explanation is super helpful too. I had tried to write point expressions, but I'm not great at code. Your explanation really helped clear up my mistakes.


Ash
  • Quick Links