Find all linked objedts(children)


#1

By accident I found that finding of all objects linked to a parent object can be done with a simple for loop without checkig the .children property. I have tested the code with several levels of nested linked objects (nested groups also) and the result alwas was correct, which not means that it will be always correct in every situation.

(
	allInkedObjsArr = for o in selection[1] collect o
)

#2

You must read deeper the CGTalk forum! :slight_smile:

(
	join #() selection[1]
)

Quote: DenisT dixit.


#3

Thank you. With all the problems with the new UI reading deeper is a hard task. :slight_smile:


#4

it was not me. As I remember Lo showed this first