Jump to content
Developer Wiki and Function Reference Links ×

Handle to object inside a group


Recommended Posts

I want to get a handle to a selected object that is inside a group.  In particular, I want to get this handle while I am inside the group editing it.  Actually it is inside a group that is inside a group.  I know that the group is the parent to the selected object, but there does not seem to be a way to get a handle to a selected object while editing that object inside the group.  FSActLayer returns the handle to the highest level group that contains the object being edited.  Actually, I'm not so much editing it as collecting data about it which is why I need its handle.  Anybody have a neat little trick to get a handle to selected object inside a group that is inside a group.  I am, of course, in group edit mode.  

Link to comment

If you get a handle to the parent, then use FInGroup() and NextObj() to cycle through the objects in the group, then use Selected(), it might work. An alternative would be to use FInGroup(), check the first object is not selected using Selected(), then jump straight to the selected object using NextSObj(). All just a guess mind you.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...