Rotate pivot to align with edge of line
for i in selection do
(p1 =getKnotPoint i 1 1
p2 =getKnotPoint i 1 2
dir = normalize (p2 - p1)
vec = case axis of
(
#x: obj.transform[1]
#y: obj.transform[2]
#z: obj.transform[3]
)
tm = i.transform
vec = normalize vec
rtm = angleaxis (acos (dot vec dir)) (normalize (cross dir vec))
i.transform = translate (rotate (scalematrix tm.scale) (tm.rotation*rtm)) tm.pos
(if pos == true do obj.pos = p1
)
Attachment | Size |
---|---|
max.jpg | 66.7 KB |
Comments
Review
Go into pivot mode and select axis. Press the Insert key on your keyboard to go into pivot mode. aboutallpet Then left click on the axis to align (it should turn yellow)
Thanks
Hello, I would like to thank you for sharing this interesting information. Moreover, the material mentioned here will be useful for a lot of people. Personally I will use it in my kakadu national park sample task.
reader
Here are some important knowledge which is about how to rotate pivot to align with edge of line. This method is simplified here in detail and tell you that you like it in best custom writings reviews way because we describe it in good way for only your helping purpose.
.
Tools and Scripts for Autodesk 3dsMax
Very handy
Very handy, Thanks
Habib
you should try align pivot to
you should try align pivot to direction script.
Very handy, Thanks
Very handy, Thanks
Habib