Home Technical Talk

Quick Object Picker - MaxScript Question

polycounter lvl 13
Offline / Send Message
Pdude2K7 polycounter lvl 13
Hey guys,

I am making a really quick script to be able to move from one object's
Editable Poly to another's rapidly.

Script:
macroScript RaySelect category:"Tools"
(
    on Execute do
    (
        p=pickobject prompt:"Pick surface."
        if p!=undefined then
        (
            select p
            max modify mode
            modPanel.setCurrentObject $.baseObject     
            subobjectLevel = 4
        )
)


I am using the Pickobject function and it works quite well. Until I try to pick
an instanced object. At which point it randomly picks an instance and not
the one I clicked on most of the time.

Any ideas will be greatly appreciated!

Replies

Sign In or Register to comment.