  | | | saving keys on cpsets using the synoptic | saving keys on cpsets using the synoptic 2005-06-10 - By Matt Morris
Back Whoops, please excuse my friday evening lapse, just figured out you can add cpset parameters to the marking sets... all is well.
-- --Original Message-- -- From: owner-xsi@(protected) [mailto:owner-xsi@(protected)]On Behalf Of Matt Morris Sent: 10 June 2005 18:49 To: xsi@(protected) Subject: saving keys on cpsets using the synoptic
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><SPAN class=253060318-10062005><FONT face=Arial color=#0000ff size=2>Whoops, please excuse my friday evening lapse, just figured out you can add cpset parameters to the marking sets... all is well.</FONT></SPAN></DIV> <DIV><SPAN class=253060318-10062005></SPAN> </DIV> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma size=2>-- --Original Message-- --<BR><B>From:</B> owner-xsi@(protected) [mailto:owner-xsi@(protected)]<B>On Behalf Of </B>Matt Morris<BR><B>Sent:</B> 10 June 2005 18:49<BR><B>To:</B> xsi@(protected)<BR><B>Subject:</B> saving keys on cpsets using the synoptic<BR><BR></FONT></DIV> <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></BLOCKQUOTE></BODY></HTML>
|
|
 |