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
Probably when you go through your if() statement you should check if it's an instance or not. If it is, get a list from all instanced objects, find out the position in the list and then select it.
Something like that. I think.
Also, modPanel.setCurrentObject will select the object and change the command panel. No need to do those separately.