Sorry for the late reply Jeremie...been busy today. Yes unfortunately it does meant that you need to use a fixed set (which the animators here happen to prefer anyways) Without looking at the documentation I'm guessing that the StoreAction must be a command vs the SIStoreAction being a direct access of the object. In general working directly with the object is much faster in Soft and the object equivalents to the commands often have an "SI" prefix to them. Glad you found something that works fast for you.
Cheers, -=Eric On Mon, Nov 11, 2013 at 7:03 PM, Jeremie Passerin <[email protected]>wrote: > Woow thanks Alok, just did a quick test. SIStoreAction takes 00.009 sec > vs 06.966000 with StoreAction. > There is some black magic there that I don't understand. > > Thanks Chris, I haven't tried your solution yet. If Alok's solution is > confirmed... it won't be necessary > thanks guys ! > > > > > On 11 November 2013 15:00, Cristobal Infante <[email protected]> wrote: > >> Hi Jeremie, >> >> Hope you are well! >> >> You can try the following method as Bradley Gabe suggested to me once. >> It's not as fast as going >> through the UI but way more acceptable. You basicaly create the Action >> first and the populate it >> using "FindObjectsByMarkingAndCapabilities" to find the keyable >> parameters, so you can >> avoid touching character sets. >> >> var oMembersColl = new ActiveXObject( "XSI.Collection" ); >> var oGroup = ActiveSceneRoot.Groups("Null_group") >> >> oMembers = oGroup.Members >> oMembersColl.additems( oMembers); >> >> oFindKeyables = oMembersColl.FindObjectsByMarkingAndCapabilities("", 2048) >> var ActionSource = ActiveSceneRoot.AddActionSource("TEST_ACTION"); >> for(var e = new Enumerator(oFindKeyables); !e.atEnd(); e.moveNext()){ >> var srcItem = ActionSource.AddSourceItem(e.item().FullName); >> srcItem.SetAsStatic(e.item().Value); >> >> >> >> >> >> >> >> >> On 11 November 2013 22:35, Alok Gandhi <[email protected]> wrote: >> >>> Did you try using the SIStoreAction command without opening the PPG, is >>> it faster ? >>> >>> >>> >>> On Mon, Nov 11, 2013 at 1:46 PM, Jeremie Passerin >>> <[email protected]>wrote: >>> >>>> Hey Eric, thanks for the answer. >>>> >>>> I never really used the character Key Sets. Never really understood the >>>> point of it. Does that mean you can only store action for predefined sets >>>> of parameters ? >>>> I want to store action based on selection. >>>> Also How do you script that ? When I select Store > Character Key Set - >>>> Current Value. It still log the same command with the full list of >>>> parameters in the set. >>>> >>>> thanks, >>>> >>>> Jeremie >>>> >>>> >>>> On 11 November 2013 10:28, Eric Turman <[email protected]> wrote: >>>> >>>>> We tried a number of ways for our pose library and character sets >>>>> ended up being quite speedy >>>>> >>>>> >>>>> On Mon, Nov 11, 2013 at 12:19 PM, Jeremie Passerin < >>>>> [email protected]> wrote: >>>>> >>>>>> Hey guys, >>>>>> >>>>>> there is something I don't understand. >>>>>> >>>>>> I select 130 controllers on my character. >>>>>> I go Actions > Store > Keyable Parameters - Current Value. >>>>>> The little UI popup , I click OK, and the action is created in a >>>>>> fraction of a second. >>>>>> >>>>>> Then I copy the command from the command log, >>>>>> paste it in the script editor, run it. >>>>>> It takes about 6 seconds to execute. >>>>>> >>>>>> Why is it so much longer ? >>>>>> Any tip on the fastest way to store an action would be greatly >>>>>> appreciated. >>>>>> >>>>>> thanks, >>>>>> Jeremie >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> >>>>> >>>>> >>>>> -=T=- >>>>> >>>> >>>> >>> >>> >>> -- >>> >> >> > -- -=T=-

