How to rotate an object based on a point?

   2699   2   1
User Avatar
Member
19 posts
Joined: Jan. 2015
Offline
have an object that I want to be able to rotate according to which point that is it is on a sphere. I have a slider that allows the user to input how many objects that they want. And based on that number the object copies itself randomly to points. For these points I have grouped them together. Since the object is in a group all of the objects are facing the same way. I want to be able to have each object to rotate to be facing outward based on where it is on the sphere.

Attachments:
Screenshot-1.png (605.9 KB)
Screenshot-2.png (626.2 KB)

User Avatar
Member
1854 posts
Joined: May 2006
Offline
You need attributes to tell the copy sop how to rotate. Here I've used @N and @up, other ways are to use @orient, @v, or a few others.

This tutorial might give you some clues:

http://www.tokeru.com/cgwiki/index.php?title=Copy,_Stamps,_Rotation,_Hscript,_Vex,_a_ramble [tokeru.com]

Attachments:
copy_align.hipnc (96.2 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
19 posts
Joined: Jan. 2015
Offline
Thank you very much for your reply! I've been looking online for the last four days trying to figure this out.
  • Quick Links