Symbolic Posted July 26, 2007 Share Posted July 26, 2007 Hi, I have a moving curve. I group the final primitive of that curve. I delete the rest and so I get a moving Primitive. It has a very beautiful normal. I then place a point in the center of this primitive with the Point SOP. and the following expressions: point poisition X = prim("../end_primitive", $PT, "P", 0) point poisition Y = prim("../end_primitive", $PT, "P", 1) point poisition Z = prim("../end_primitive", $PT, "P", 2) So the point moves together with the primitve. But is it possible to copy the Normal information of that Primitive to the Point? I tried AttributeCopy, AttributeTransfer non of them worked. Probably I am not doing the right thing to make them work. Any ideas? Thanks. Quote Link to comment Share on other sites More sharing options...
TheUsualAlex Posted July 26, 2007 Share Posted July 26, 2007 Use Attribute Promote SOP to convert Primitive to Point type. Quote Link to comment Share on other sites More sharing options...
edward Posted July 26, 2007 Share Posted July 26, 2007 I think you can also just grab the intrinsic N primitive attribute using the prim() expression. eg. prim("/obj/model/mygeo", 0, "N", 0) prim("/obj/model/mygeo", 0, "N", 1) prim("/obj/model/mygeo", 0, "N", 2) (for primitive 0 of /obj/model/mygeo) Quote Link to comment Share on other sites More sharing options...
Symbolic Posted July 26, 2007 Author Share Posted July 26, 2007 (edited) Thanks, I did not try AttributePromote, I never manage to get those advanced SOPs working. They always complain about something... So I went the expression way: prim("/obj/model/mygeo", 0, "N", 0) prim("/obj/model/mygeo", 0, "N", 1) prim("/obj/model/mygeo", 0, "N", 2) solution. And It worked! Thanks! NormaFromPrimToPoint3.hip Edited July 26, 2007 by Symbolic Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.