Notifications
Clear all
[Closed] Challenge: Looping through Nested nested Xref scenes
Mar 07, 2014 4:46 pm
How is this possible?
Lets say I want to set the wirecolor to blue on all xref scene, and all of there nested xref scenes in level 1,2,3,4,5,6, etc
Is this possible and how would it look?
2 Replies
Mar 07, 2014 4:46 pm
fn collectXRefScenes root: nested:on scenes:#() =
(
for k=1 to xrefs.getXRefFileCount root:root do
(
xsc = xrefs.getXRefFile k root:root
append scenes xsc
if nested do collectXrefScenes root:xsc scenes:scenes
)
scenes
)
for xsc in collectXrefScenes() do
(
for root in xsc.tree.children do (join #() root).wirecolor = yellow
)