''  This file downloaded from Highend3d.com
''  
''  Highend3d.com File Information:
''  
''    Script Name: branch_viz v1.0
''    Author: Matt Lowery
''    Last Updated: March 22, 2001
''    Update/Change this file at:
''    http://www.highend3d.com/xsi/scripts/?section=animation#940
''  
''  Please do not alter any information above this line
''  it is generated dynamically by Highend3d.com and will
''  be changed automatically on any updates.
''

' Branch viz v1.0 by Matt Lowery

Dim obj
Dim A
Dim ab

' Saves branch visibility keys

Set obj=GetValue("SelectionList")
SelectChildNodes
Set A=GetValue("SelectionList")
for each ab in A
	SaveKey ".visibility.rendvis"
	SaveKey ".visibility.viewvis" 
next
SelectObj obj, "BRANCH",True