Notifications
Clear all

[Closed] SpacePathDeform Move to Path?

Hi!
I have this problem:
I use MaxScript to apply a SpacePathDeformer to a bunch of objects.
Now i want to move the objects to the original path, just like when you hit that button “Move to Path” with the WSM PathDeformer.
My question is: how do i script this “Move to Path” method?

5 Replies
 rdg

Hello igor_BSC,

this is explained in the MAXscript Reference:

theObj.transform = thePath.transform --MOVE TO PATH!

Georg

Unfortunately this does not show the desired result.
I have tried this before assigning the pathDeform modifier, i have tried this after assigning the pathDeform modifier, i have tried this on just the object itself, on just the gizmo, on the object and the gizmo. The object went all over the place but not onto the path itself. 🙁

 rdg

Sometimes a reset xform is needed.

Georg

Yup, sounds like your original object may have a transform on it. In general, always do a reset xform before trying to use pathdeform for anything. BTW, you may find some useful code for whatever you’re doing in my WireBundler script available here:

http://www.neilblevins.com/soulburnscripts/soulburnscripts.htm

Feel free to study it and use whatever pieces you need.

  • Neil

Thanks for the replies!
Reset XForm didn’t do it either. Anyway, it seems that something was messed up in the scene. I redid the whole thing and now it works. $myobject.transform=$mypath.transform works great. Thank you very much.