14/9


sub OnInitParameters()
RegisterPushButton(“do”, “Proceed”, 1)
RegisterPushButton(“undo”, “Undo”, 2)
end sub

sub OnExecAction(buttonId As Integer)
if buttonId = 1 then
scene.findcontainer(“Main$MASK$L5_pattern”).scaling.x = 5.615
scene.findcontainer(“Main$MASK$L6_content”).scaling.x = 5.615
scene.findcontainer(“Main$MASK$L4_picto”).position.x =-312.194
elseif buttonid=2 then
scene.findcontainer(“Main$MASK$L5_pattern”).scaling.x = 4.572
scene.findcontainer(“Main$MASK$L6_content”).scaling.x = 4.572
scene.findcontainer(“Main$MASK$L4_picto”).position.x =-260.034
end if

‘ UpdateBoard(buttonId, scene.findcontainer(“Main$10″))
‘ UpdateBoard(buttonId, scene.findcontainer(“Main$09″))
‘ UpdateBoard(buttonId, scene.findcontainer(“Main$08″))
‘ UpdateBoard(buttonId, scene.findcontainer(“Main$07″))
‘ UpdateBoard(buttonId, scene.findcontainer(“Main$06″))
UpdateBoard(buttonId, scene.findcontainer(“Main$05″))
UpdateBoard(buttonId, scene.findcontainer(“Main$04″))
UpdateBoard(buttonId, scene.findcontainer(“Main$03″))
UpdateBoard(buttonId, scene.findcontainer(“Main$02″))
UpdateBoard(buttonId, scene.findcontainer(“Main$01″))

ParseDirectors(scene.stage.rootdirector)
end sub

sub UpdateBoard(buttonId As Integer, cBoard as container)
cboard.findsubcontainer(“Footer$Left$Value”).geometry.text = “”
cboard.findsubcontainer(“FooterBis$Left$Value”).geometry.text = “”
cboard.findsubcontainer(“OnOff_Set_Page2$Footer$Left$Value”).geometry.text = “”
cboard.findsubcontainer(“Footer$Right$Value”).geometry.text = “www.fina.org”
cboard.findsubcontainer(“FooterBis$Right$Value”).geometry.text = “www.fina.org”
cboard.findsubcontainer(“OnOff_Set_Page2$Footer$Right$Value”).geometry.text = “www.fina.org”
if buttonId = 1 then
‘ cboard.findsubcontainer(“Header$bg_header_invert”).scaling.x = 5.615
‘ cboard.findsubcontainer(“Header$Background”).scaling.x = 5.615
‘ cboard.findsubcontainer(“Header$Picto01$bg_picto_sport”).position.x =-305.099 ‘ ptit picto
‘ cboard.findsubcontainer(“Header$Picto01$bg_picto_sport”).position.x =-312.194 ‘ gros picto
‘ cboard.findsubcontainer(“Header$Picto01$Value”).position.x =-305.099 ‘ ptit picto
‘ cboard.findsubcontainer(“Header$Picto01$Value”).position.x =-312.194 ‘ gros picto
cboard.findsubcontainer(“Header$Picto02$Value”).position.x = 192
cboard.findsubcontainer(“Header$Title01$Value”).position.x =-252
cboard.findsubcontainer(“Header$Title02$Value”).position.x =-252
cboard.findsubcontainer(“Header$Title03$Value”).position.x =-252

‘ cboard.findsubcontainer(“Footer$bg_footer”).scaling.x = 5.615
cboard.findsubcontainer(“Footer$Left$Value”).position.x =-252
cboard.findsubcontainer(“Footer$Right$Value”).position.x = 252
‘ cboard.findsubcontainer(“FooterBis$bg_footer”).scaling.x = 5.615
‘ cboard.findsubcontainer(“FooterBis$Left$Value”).position.x =-268.161
‘ cboard.findsubcontainer(“FooterBis$Right$Value”).position.x = 268.161
‘ cboard.findsubcontainer(“OnOff_Set_Page2$Footer$bg_footer”).scaling.x = 5.615
‘ cboard.findsubcontainer(“OnOff_Set_Page2$Footer$Left$Value”).position.x =-268.161
‘ cboard.findsubcontainer(“OnOff_Set_Page2$Footer$Right$Value”).position.x = 268.161

cboard.findsubcontainer(“Header$Title01$Value”).GetFunctionPluginInstance(“Maxsize”).SetParameterDouble(“WIDTH_X”, 840)
cboard.findsubcontainer(“Header$Title02$Value”).GetFunctionPluginInstance(“Maxsize”).SetParameterDouble(“WIDTH_X”, 1020)
elseif buttonid=2 then
cboard.findsubcontainer(“Header$bg_header_invert”).scaling.x = 4.572
cboard.findsubcontainer(“Header$Background”).scaling.x = 4.572
‘ cboard.findsubcontainer(“Header$Picto01$bg_picto_sport”).position.x =-252.939
cboard.findsubcontainer(“Header$Picto01$bg_picto_sport”).position.x =-260.033 ‘ gros picto
‘ cboard.findsubcontainer(“Header$Picto01$Value”).position.x =-252.939
cboard.findsubcontainer(“Header$Picto01$Value”).position.x =-260.033 ‘ gros picto
cboard.findsubcontainer(“Header$Picto02$Value”).position.x = 160
cboard.findsubcontainer(“Header$Title01$Value”).position.x =-200
cboard.findsubcontainer(“Header$Title02$Value”).position.x =-200
cboard.findsubcontainer(“Header$Title03$Value”).position.x =-200
cboard.findsubcontainer(“Footer$bg_footer”).scaling.x = 4.572
cboard.findsubcontainer(“Footer$Left$Value”).position.x =-216
cboard.findsubcontainer(“Footer$Right$Value”).position.x = 216
cboard.findsubcontainer(“FooterBis$bg_footer”).scaling.x = 4.572
cboard.findsubcontainer(“FooterBis$Left$Value”).position.x =-216
cboard.findsubcontainer(“FooterBis$Right$Value”).position.x = 216
cboard.findsubcontainer(“OnOff_Set_Page2$Footer$bg_footer”).scaling.x = 4.572
cboard.findsubcontainer(“OnOff_Set_Page2$Footer$Left$Value”).position.x =-216
cboard.findsubcontainer(“OnOff_Set_Page2$Footer$Right$Value”).position.x = 216
end if
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$LineMedals”))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$LineMedals”))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line01″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line01″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line02″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line02″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line03″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line03″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line04″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line04″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line05″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line05″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line06″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line06″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line07″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line07″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line08″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line08″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line09″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line09″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line10″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line10″))

UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line01″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line02″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line03″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line04″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line05″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line06″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line07″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line08″))

end Sub

sub UpdateLine(buttonId As Integer, cLine as container)

‘ cline.findsubcontainer(“Background”).name=”GFX”

‘ cline.findsubcontainer(“Flag$TextClub”).Delete()
‘ cline.findsubcontainer(“Flag”).position.xyz = cvertex(0)
‘ cline.findsubcontainer(“Flag$Text”).position.xyz = cvertex(0)
‘ cline.findsubcontainer(“Flag$Text$value”).position.y =-132.0
‘ cline.findsubcontainer(“Flag$Value”).position.y = 0.394 ‘ =-126.373
‘ cline.findsubcontainer(“Flag$Text$Value”).position.y = -6
‘ cline.findsubcontainer(“Name”).position.x = 0
if buttonId = 1 then
‘ cline.findsubcontainer(“GFX”).FirstChildContainer.scaling.x = 5.615
‘ cline.findsubcontainer(“GFX”).FirstChildContainer.nextcontainer.scaling.x = 5.615
‘ cline.findsubcontainer(“Bib$Value”).position.x =-199.561
‘ cline.findsubcontainer(“Flag$Text$Value”).position.x =-236.474
‘ cline.findsubcontainer(“Flag$Value”).position.x =-264.445
‘ cline.findsubcontainer(“Flag$bg_flag”).position.x =-251.245
‘ cline.findsubcontainer(“Name$Value”).position.x =-252.61
‘ cline.findsubcontainer(“Time$Value”).position.x = 256.161
‘ cline.findsubcontainer(“Info01$Value”).position.x = 273.161

‘Infoathlete 16/9
cline.findsubcontainer(“Info01$Value”).position.x =-247
cline.findsubcontainer(“Flag$bg_flag”).position.x =-203
cline.findsubcontainer(“Flag$Value”).position.x =-216
cline.findsubcontainer(“Flag$Text$Value”).position.x =-188
cline.findsubcontainer(“Bib$DummyValue”).position.x =-149
cline.findsubcontainer(“Bib$Value”).position.x =-149
cline.findsubcontainer(“Name$Value”).position.x =-161
cline.findsubcontainer(“Status$bg_irm”).position.x = 171
cline.findsubcontainer(“Status$Value”).position.x = 171
cline.findsubcontainer(“Record$bg_irm”).position.x = 171
cline.findsubcontainer(“Record$Value”).position.x = 171
cline.findsubcontainer(“Score$Value”).position.x = 231

‘ cline.findsubcontainer(“Order$bg”).position.x =-266.938
‘ cline.findsubcontainer(“Order$Value”).position.x =-246

elseif buttonid=2 then
‘ cline.findsubcontainer(“GFX”).FirstChildContainer.scaling.x = 4.572
‘ cline.findsubcontainer(“GFX”).FirstChildContainer.nextcontainer.scaling.x = 4.572
‘ cline.findsubcontainer(“Bib$Value”).position.x =-147.4
‘ cline.findsubcontainer(“Flag$Text$Value”).position.x =-184.313
‘ cline.findsubcontainer(“Flag$Value”).position.x =-212.284
‘ cline.findsubcontainer(“Flag$bg_flag”).position.x =-199.085
‘ cline.findsubcontainer(“Name$Value”).position.x =-200
‘ cline.findsubcontainer(“Time$Value”).position.x = 204
‘ cline.findsubcontainer(“Info01$Value”).position.x = 221

‘Infoathlete 4/3
cline.findsubcontainer(“Info01$Value”).position.x =-215.085
cline.findsubcontainer(“Flag$bg_flag”).position.x =-224
cline.findsubcontainer(“Flag$Value”).position.x =-237
cline.findsubcontainer(“Flag$Text$Value”).position.x =-209
cline.findsubcontainer(“Bib$DummyValue”).position.x =-170
cline.findsubcontainer(“Bib$Value”).position.x =-170
cline.findsubcontainer(“Name$Value”).position.x =-159
cline.findsubcontainer(“Status$bg_irm”).position.x = 266
cline.findsubcontainer(“Status$Value”).position.x = 266

cline.findsubcontainer(“Order$bg”).position.x =-266.938
cline.findsubcontainer(“Order$Value”).position.x = -267
end if
end sub

sub ParseDirectors(thisDirector as director)
dim AsChannel as array[channel]
println(“Parsing director:” &thisDirector.name)
thisDirector.GetAnimationChannels(AsChannel)
For i = 0 To AsChannel.Size-1
ParseKeyFrames(AsChannel[i])
Next
if thisDirector.NextDirector.name <> “” then
ParseDirectors(thisDirector.NextDirector)
end if
end sub

sub ParseKeyFrames(chan as channel)
if chan.name <> “” then
println(“Checking channel: “&chan.name)
for i = 0 to chan.KeyframeCount-1
println(chan.GetKeyframe(i).time&”: “&chan.GetKeyframe(i).xyzvalue)
if ( chan.GetKeyframe(i).xyzvalue.x = -457 ) or ( chan.GetKeyframe(i).xyzvalue.x = -458 ) then
chan.GetKeyframe(i).xyzvalue.x = -564
end if

‘ ReplaceString(chan.GetKeyframe(i).ActionString)
next
end if
end sub

 

 

 

 

sub OnInitParameters()
RegisterPushButton(“do”, “Proceed”, 1)
RegisterPushButton(“undo”, “Undo”, 2)
end sub

sub OnExecAction(buttonId As Integer)
if buttonId = 1 then
scene.findcontainer(“Main$MASK$L5_pattern”).scaling.x = 5.615
scene.findcontainer(“Main$MASK$L6_content”).scaling.x = 5.615
scene.findcontainer(“Main$MASK$L4_picto”).position.x =-312.194
elseif buttonid=2 then
scene.findcontainer(“Main$MASK$L5_pattern”).scaling.x = 4.572
scene.findcontainer(“Main$MASK$L6_content”).scaling.x = 4.572
scene.findcontainer(“Main$MASK$L4_picto”).position.x =-260.034
end if

‘ UpdateBoard(buttonId, scene.findcontainer(“Main$10″))
‘ UpdateBoard(buttonId, scene.findcontainer(“Main$09″))
‘ UpdateBoard(buttonId, scene.findcontainer(“Main$08″))
UpdateBoard(buttonId, scene.findcontainer(“Main$07″))
UpdateBoard(buttonId, scene.findcontainer(“Main$06″))
UpdateBoard(buttonId, scene.findcontainer(“Main$05″))
UpdateBoard(buttonId, scene.findcontainer(“Main$04″))
UpdateBoard(buttonId, scene.findcontainer(“Main$03″))
UpdateBoard(buttonId, scene.findcontainer(“Main$02″))
‘ UpdateBoard(buttonId, scene.findcontainer(“Main$01″))

ParseDirectors(scene.stage.rootdirector)
end sub

sub UpdateBoard(buttonId As Integer, cBoard as container)
cboard.findsubcontainer(“Footer$Left$Value”).geometry.text = “”
cboard.findsubcontainer(“FooterBis$Left$Value”).geometry.text = “”
cboard.findsubcontainer(“OnOff_Set_Page2$Footer$Left$Value”).geometry.text = “”
cboard.findsubcontainer(“Footer$Right$Value”).geometry.text = “www.fina.org”
cboard.findsubcontainer(“FooterBis$Right$Value”).geometry.text = “www.fina.org”
cboard.findsubcontainer(“OnOff_Set_Page2$Footer$Right$Value”).geometry.text = “www.fina.org”
if buttonId = 1 then
‘ cboard.findsubcontainer(“Header$bg_header_invert”).scaling.x = 5.615
‘ cboard.findsubcontainer(“Header$Background”).scaling.x = 5.615
‘ cboard.findsubcontainer(“Header$Picto01$bg_picto_sport”).position.x =-305.099 ‘ ptit picto
‘ cboard.findsubcontainer(“Header$Picto01$bg_picto_sport”).position.x =-312.194 ‘ gros picto
‘ cboard.findsubcontainer(“Header$Picto01$Value”).position.x =-305.099 ‘ ptit picto
‘ cboard.findsubcontainer(“Header$Picto01$Value”).position.x =-312.194 ‘ gros picto
cboard.findsubcontainer(“Header$Picto02$Value”).position.x = 192
cboard.findsubcontainer(“Header$Title01$Value”).position.x =-252
cboard.findsubcontainer(“Header$Title02$Value”).position.x =-252
cboard.findsubcontainer(“Header$Title03$Value”).position.x =-252

‘ cboard.findsubcontainer(“Footer$bg_footer”).scaling.x = 5.615
cboard.findsubcontainer(“Footer$Left$Value”).position.x =-252
cboard.findsubcontainer(“Footer$Right$Value”).position.x = 252
‘ cboard.findsubcontainer(“FooterBis$bg_footer”).scaling.x = 5.615
‘ cboard.findsubcontainer(“FooterBis$Left$Value”).position.x =-268.161
‘ cboard.findsubcontainer(“FooterBis$Right$Value”).position.x = 268.161
‘ cboard.findsubcontainer(“OnOff_Set_Page2$Footer$bg_footer”).scaling.x = 5.615
‘ cboard.findsubcontainer(“OnOff_Set_Page2$Footer$Left$Value”).position.x =-268.161
‘ cboard.findsubcontainer(“OnOff_Set_Page2$Footer$Right$Value”).position.x = 268.161

cboard.findsubcontainer(“LineMedals$Gold$Value”).position.x = 116
cboard.findsubcontainer(“LineMedals$Silver$Value”).position.x = 151
cboard.findsubcontainer(“LineMedals$Bronze$Value”).position.x = 186
cboard.findsubcontainer(“LineMedals$Total$Value”).position.x = 236

cboard.findsubcontainer(“Header$Title01$Value”).GetFunctionPluginInstance(“Maxsize”).SetParameterDouble(“WIDTH_X”, 840)
cboard.findsubcontainer(“Header$Title02$Value”).GetFunctionPluginInstance(“Maxsize”).SetParameterDouble(“WIDTH_X”, 1020)
elseif buttonid=2 then
cboard.findsubcontainer(“Header$bg_header_invert”).scaling.x = 4.572
cboard.findsubcontainer(“Header$Background”).scaling.x = 4.572
‘ cboard.findsubcontainer(“Header$Picto01$bg_picto_sport”).position.x =-252.939
cboard.findsubcontainer(“Header$Picto01$bg_picto_sport”).position.x =-260.033 ‘ gros picto
‘ cboard.findsubcontainer(“Header$Picto01$Value”).position.x =-252.939
cboard.findsubcontainer(“Header$Picto01$Value”).position.x =-260.033 ‘ gros picto
cboard.findsubcontainer(“Header$Picto02$Value”).position.x = 160
cboard.findsubcontainer(“Header$Title01$Value”).position.x =-200
cboard.findsubcontainer(“Header$Title02$Value”).position.x =-200
cboard.findsubcontainer(“Header$Title03$Value”).position.x =-200
cboard.findsubcontainer(“Footer$bg_footer”).scaling.x = 4.572
cboard.findsubcontainer(“Footer$Left$Value”).position.x =-216
cboard.findsubcontainer(“Footer$Right$Value”).position.x = 216
cboard.findsubcontainer(“FooterBis$bg_footer”).scaling.x = 4.572
cboard.findsubcontainer(“FooterBis$Left$Value”).position.x =-216
cboard.findsubcontainer(“FooterBis$Right$Value”).position.x = 216
cboard.findsubcontainer(“OnOff_Set_Page2$Footer$bg_footer”).scaling.x = 4.572
cboard.findsubcontainer(“OnOff_Set_Page2$Footer$Left$Value”).position.x =-216
cboard.findsubcontainer(“OnOff_Set_Page2$Footer$Right$Value”).position.x = 216
end if
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$LineMedals”))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$LineMedals”))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line01″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line01″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line02″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line02″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line03″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line03″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line04″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line04″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line05″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line05″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line06″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line06″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line07″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line07″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line08″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line08″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line09″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line09″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page1$Line10″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Page2$Line10″))

UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line01″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line02″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line03″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line04″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line05″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line06″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line07″))
UpdateLine(buttonId,cBoard.findsubcontainer(“Content$Line08″))

end Sub

sub UpdateLine(buttonId As Integer, cLine as container)

‘ cline.findsubcontainer(“Background”).name=”GFX”

‘ cline.findsubcontainer(“Flag$TextClub”).Delete()
‘ cline.findsubcontainer(“Flag”).position.xyz = cvertex(0)
‘ cline.findsubcontainer(“Flag$Text”).position.xyz = cvertex(0)
‘ cline.findsubcontainer(“Flag$Text$value”).position.y =-132.0
‘ cline.findsubcontainer(“Flag$Value”).position.y = 0.394 ‘ =-126.373
‘ cline.findsubcontainer(“Flag$Text$Value”).position.y = -6
‘ cline.findsubcontainer(“Name”).position.x = 0
if buttonId = 1 then
‘ cline.findsubcontainer(“GFX”).FirstChildContainer.scaling.x = 5.615
‘ cline.findsubcontainer(“GFX”).FirstChildContainer.nextcontainer.scaling.x = 5.615
‘ cline.findsubcontainer(“Bib$Value”).position.x =-199.561
‘ cline.findsubcontainer(“Flag$Text$Value”).position.x =-236.474
‘ cline.findsubcontainer(“Flag$Value”).position.x =-264.445
‘ cline.findsubcontainer(“Flag$bg_flag”).position.x =-251.245
‘ cline.findsubcontainer(“Name$Value”).position.x =-252.61
‘ cline.findsubcontainer(“Time$Value”).position.x = 256.161
‘ cline.findsubcontainer(“Info01$Value”).position.x = 273.161

‘Infoathlete 14/9

cline.findsubcontainer(“Rank$bg”).position.x = -246
cline.findsubcontainer(“Rank$Value”).position.x = -246
‘ cline.findsubcontainer(“Info01$Value”).position.x =-247
cline.findsubcontainer(“Flag$bg_flag”).position.x =-203
cline.findsubcontainer(“Flag$Value”).position.x =-216
cline.findsubcontainer(“Flag$Text$Value”).position.x =-188
cline.findsubcontainer(“Bib$DummyValue”).position.x =-149
cline.findsubcontainer(“Bib$Value”).position.x =-149
cline.findsubcontainer(“Name$Value”).position.x =-161
‘ cline.findsubcontainer(“Status$bg_irm”).position.x = 171
‘ cline.findsubcontainer(“Status$Value”).position.x = 171
‘ cline.findsubcontainer(“Record$bg_irm”).position.x = 171
‘ cline.findsubcontainer(“Record$Value”).position.x = 171
‘ cline.findsubcontainer(“Score$Value”).position.x = 231
cline.findsubcontainer(“Gold$Value”).position.x = 116
cline.findsubcontainer(“Silver$Value”).position.x = 151
cline.findsubcontainer(“Bronze$Value”).position.x = 186
cline.findsubcontainer(“Total$Value”).position.x = 236

cline.findsubcontainer(“Name$Value”).GetFunctionPluginInstance(“Maxsize”).SetParameterDouble(“WIDTH_X”, 666)

‘ cline.findsubcontainer(“Order$bg”).position.x =-266.938
‘ cline.findsubcontainer(“Order$Value”).position.x =-246

elseif buttonid=2 then
‘ cline.findsubcontainer(“GFX”).FirstChildContainer.scaling.x = 4.572
‘ cline.findsubcontainer(“GFX”).FirstChildContainer.nextcontainer.scaling.x = 4.572
‘ cline.findsubcontainer(“Bib$Value”).position.x =-147.4
‘ cline.findsubcontainer(“Flag$Text$Value”).position.x =-184.313
‘ cline.findsubcontainer(“Flag$Value”).position.x =-212.284
‘ cline.findsubcontainer(“Flag$bg_flag”).position.x =-199.085
‘ cline.findsubcontainer(“Name$Value”).position.x =-200
‘ cline.findsubcontainer(“Time$Value”).position.x = 204
‘ cline.findsubcontainer(“Info01$Value”).position.x = 221

‘Infoathlete 4/3
cline.findsubcontainer(“Info01$Value”).position.x =-215.085
cline.findsubcontainer(“Flag$bg_flag”).position.x =-224
cline.findsubcontainer(“Flag$Value”).position.x =-237
cline.findsubcontainer(“Flag$Text$Value”).position.x =-209
cline.findsubcontainer(“Bib$DummyValue”).position.x =-170
cline.findsubcontainer(“Bib$Value”).position.x =-170
cline.findsubcontainer(“Name$Value”).position.x =-159
cline.findsubcontainer(“Status$bg_irm”).position.x = 266
cline.findsubcontainer(“Status$Value”).position.x = 266

cline.findsubcontainer(“Order$bg”).position.x =-266.938
cline.findsubcontainer(“Order$Value”).position.x = -267
end if
end sub

sub ParseDirectors(thisDirector as director)
dim AsChannel as array[channel]
println(“Parsing director:” &thisDirector.name)
thisDirector.GetAnimationChannels(AsChannel)
For i = 0 To AsChannel.Size-1
ParseKeyFrames(AsChannel[i])
Next
if thisDirector.NextDirector.name <> “” then
ParseDirectors(thisDirector.NextDirector)
end if
end sub

sub ParseKeyFrames(chan as channel)
if chan.name <> “” then
println(“Checking channel: “&chan.name)
for i = 0 to chan.KeyframeCount-1
println(chan.GetKeyframe(i).time&”: “&chan.GetKeyframe(i).xyzvalue)
if ( chan.GetKeyframe(i).xyzvalue.x = -457 ) or ( chan.GetKeyframe(i).xyzvalue.x = -458 ) then
chan.GetKeyframe(i).xyzvalue.x = -564
end if

‘ ReplaceString(chan.GetKeyframe(i).ActionString)
next
end if
end sub