You need to filter the selection for eligible objects, then iterate through
that list and call CopyAllAnimation2() for each object in the list:
var oSelectedItems = SIFilter( null, siObjectFilter, true, siQuickSearch );
if ( !oSelectedItems || oSelectedItems.Count <= 0 ) {
return;
}
for ( var i = 0; i < oSelectedItems.Count; i++ ) {
var oSelectedItem = oSelectedItems(i);
CopyAllAnimation2( oSelectedItem, siAnySource, siAllParam );
}
Matt
From: [email protected]
[mailto:[email protected]] On Behalf Of Francisco Criado
Sent: Tuesday, June 24, 2014 11:06 AM
To: [email protected]
Subject: simple script
Hi guys, just trying to do a quick access button, and getting stuck with
something very simple:
Application.CopyAllAnimation2("sarasa", "siAnySource", "siAllParam", "", "",
"") and my intention is to replace "sarasa" with current selection...
is there any command for current selection?
Thanks in advance.
F.