agharraph Posted January 7, 2015 Share Posted January 7, 2015 Hi everyone. I'm hoping one of you clever people will be able to help me with this little problem I'm having. When copy-stamping objects onto some animated points, the copied objects are transformed along with the points, but they do not fully respect the rotations. I have a feeling the solution will require a vopsop, with some kind of vector math to get Y normal rotations, but my knowledge of vector math is very limited and I'm struggling to find an elegant solution. I've created a simple scene to demonstrate the issue. You'll see that the teapots do not rotate along with the grid that they are copied onto. Any help would be much appreciated! rotNotWorking.hip Quote Link to comment Share on other sites More sharing options...
loudsubs Posted January 7, 2015 Share Posted January 7, 2015 Just give it the N attribute, and turn off "recompute normals" in the xform. rotWorking.hip Quote Link to comment Share on other sites More sharing options...
agharraph Posted January 7, 2015 Author Share Posted January 7, 2015 Hi loudsubs, thanks for the quick reply! Your solution works for the example scene I provided, but is easily broken if the rotation is adjusted in the xform, for example setting it to << -50, $FF, 50 >> Quote Link to comment Share on other sites More sharing options...
loudsubs Posted January 7, 2015 Share Posted January 7, 2015 Here it is working. the problem was that the up vector was not getting updated by the rotations. You can see this by looking in the details view, or by creating a custom attribute to visualize. rotWorking.hip Quote Link to comment Share on other sites More sharing options...
agharraph Posted January 8, 2015 Author Share Posted January 8, 2015 Hey thanks loudsubs! That's definitely working better than before. Though I can't get it to work if I use a scatter after the grid GEO.. any thoughts as to why that is? Quote Link to comment Share on other sites More sharing options...
loudsubs Posted January 8, 2015 Share Posted January 8, 2015 If you look at the attrib reorient help card, it says that it only works with polygons. That's why it breaks when using scatter. Here it is working with scatter. I need to do a little reading on why it wont work using the orient attribute, but at least it works using N and up. rotWorking1.hip Quote Link to comment Share on other sites More sharing options...
agharraph Posted January 9, 2015 Author Share Posted January 9, 2015 That's great, thanks dude. 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.