  | | | saving keys on cpsets using the synoptic | saving keys on cpsets using the synoptic 2005-06-10 - By Matt Morris
Back Hi list,
so I've got a couple of DisplayInfo parameter sets underneath my foot controls, and needs to be able to key these at the same time as keying everything else.
I can create a select all command in the synoptic easily enough by adding them to the selection using ToggleSelection, but can't do the same with keying. This is what I have so far (obviously harvested from the xsi synoptic):
sub key_all(in_obj)
dim sel Set sel = GetValue("SelectionList") set oRoot = Application.ActiveProject.ActiveScene.Root set myObj = oRoot.FindChild(in_obj) SelectObj myObj.model & ".Global_SRT", "BRANCH" SelectChildNodes SetMarking "MarkingSet" SaveKey SelectObj sel
end sub
And this is what I added to the select all command to make it work:
ToggleSelection myObj.model & ".LeftFoot.DisplayInfo" ToggleSelection myObj.model & ".RightFoot.DisplayInfo"
Can't figure out for the life of me how to key the cpsets within the key_all command. Any ideas gratefully received as always :)
Matt
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD> <BODY> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005>Hi list,</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005>so I've got a couple of DisplayInfo parameter sets underneath my foot controls, and needs to be able to key these at the same time as keying everything else.</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005>I can create a select all command in the synoptic easily enough by adding them to the selection using ToggleSelection, but can't do the same with keying. </SPAN></FONT><FONT face=Arial size=2><SPAN class=298234117-10062005></SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005>This is what I have so far (obviously harvested from the xsi synoptic):</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005>sub key_all(in_obj)</SPAN></FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005> dim sel<BR> Set sel = GetValue("SelectionList")<BR> set oRoot = Application.ActiveProject.ActiveScene.Root<BR> set myObj = oRoot.FindChild(in_obj)<BR> SelectObj myObj.model & ".Global_SRT", "BRANCH"<BR> SelectChildNodes<BR> SetMarking "MarkingSet"<BR> SaveKey<BR> SelectObj sel</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005>end sub</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005>And this is what I added to the select all command to make it work:</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005> ToggleSelection myObj.model & ".LeftFoot.DisplayInfo"<BR> ToggleSelection myObj.model & ".RightFoot.DisplayInfo"</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005>Can't figure out for the life of me how to key the cpsets within the key_all command. Any ideas gratefully received as always :)</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005>Matt</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=298234117-10062005></SPAN></FONT> </DIV></BODY></HTML>
|
|
 |