[Closed] moving object along local axis ?
Hi guyz,
I have been trying to figure, how to get the local position of any object?
Basically i wanted to move an object along one of it’s local axis to align it to another object.But no way could i figure the values of the target objects local positions.
I have searched here and found in another thread on node transformations, but couldnt really decrypt it.
Can some one please simplify this.
Another doubt i came up with is, how the hell do one access the align tools options in 3dsmax. That could solve all the above issues i have.
Thanks.
Hello!
I may mis-understand a little…
what is an objects local position? [0,0,0]?
have a read in the MXS help about ‘applying standard transformation’ and also about the coordsys context
As for accessing the align tool, it doesn’t work like that. You can explicitly get and set the positions and rotations of objects, so if you wanted to align one object to the maximum x of another:
b1=box()
b2=box()
b1.pos.x=b2.max.x
Am I missing the point of your question?
Josh.
Local = relative to itself
its the parent space that matters
$.pos = ([0,0,50] * $Box01.transform)
in coordsys Local $.pos += [0,0,50]
matrices works in parent space ($.transform = world)
Hi,PiXeL_MoNKeY
This approach can solve the problem temporarily,But if c:\ have four hundred jpg files
I will write if (lh == “wood”),if (lh == “wood”),if (lh == ” “)…,Too much trouble,Do have a better solution ?
alt + a then pick the object you want . and align options pop up . cheers[left]xLDen>zh GoogleDicC
选择,挑选,选拔 , 作出选择,挑选 , 挑选出来的;精选的 , 上等的,优等的,卓越的 , (学校,社会等)选择成员严格的;挑剔的 , 明断的;有见识的 , 被挑选出来的人(或物) , 优等品;精萃 , If you , If you
[/left]
Thanx for the replies guys.
@j-man : “in coordsys node” thats the source. Thanks and thanks for the tip for align tool alternative
@Ruramuq : Thanx for the explanation.
Finally, I needed to find the offset value from target to source object in local co-ordinate system.
I found the offset by coordsys “in coordsys <node>” context
in coordsys $objY $objX.pos
The above gives that offset value of positions.
Thanks again