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=-
>>>
>>
>>
>
>
> --
>