Primative Sop trick?

   3199   3   1
User Avatar
Member
387 posts
Joined: July 2005
Offline
Hey,

I found a funny solution to a simple problem today, except i'm not sure how to
interpret what's happening. I'm stamping a lot of line segments, variously
oriented, using the line sop with 2 points. The default Line Sop has the first
point at the origin. I wanted the origin to be half-way along the line.

Try this trick:

Place a Line SOP. Keep defaults, except change “dirx” to something like: sin($F).

Hit play - the line moves like a VU Meter.

Append a Primative SOP, and wire the Line SOP into both inputs.
Enable the Primative Sop's “Do Transform” toggle.

The origin is now at the line's centre. Hey? Cool. Ummm.. Why?
eg. Is it using the $CE{X,Y,Z} from the template input? Discuss.
''You're always doing this: reducing it to science. Why can't it be real?'' – Jackie Tyler
User Avatar
Member
2199 posts
Joined: July 2005
Online
From the help card

Template Group
A subset of template points to transform to.


I guess because you only have 1 primitive it just moves it to the first point it finds in the template. Being as its a primitive it moves it based on the position of the centroid…
The trick is finding just the right hammer for every screw
User Avatar
Member
387 posts
Joined: July 2005
Offline
Simon
Being as its a primitive it moves it based on the position of the centroid…
Heya,

If you still have the example, try RMB “delete channel” on the primative SOP's
pivot values, so that it's 0,0,0 instead of $CEX, $CEY, $CEZ. … Cool? It makes
sense, like you say, until a few more lines are added. I've attached an example
with 4 lines. The situation where the switch is set to “2” is curious. The right two
lines are off to the right.

To be clear, this is not a problem - i'm just messing around with the Prim Sop.
I know a transform sop with -$CEX, -$CEY, -$CEZ would be better generally.

cheers,
b.

Attachments:
4lines.hip.gz (7.1 KB)

''You're always doing this: reducing it to science. Why can't it be real?'' – Jackie Tyler
User Avatar
Member
2199 posts
Joined: July 2005
Online
Yeah that 3rd version is pretty funky. I think this requires Edward to explain it. Beats me :?
The trick is finding just the right hammer for every screw
  • Quick Links