It's only because it's not yet been exposed to scripting, there's quite a
few of these.
Personally I prefer to fall back onto the xsi.collection method in these
cases rather than use getvalue and setvalue. Partly because it's fast,
partly because it keeps you in the OM. Plus there's no logging:-
var oCustomProp = ActiveSceneRoot.AddProperty("CustomProperty");
var oProp = Obj( oCustomProp + ".IsCharacterKeySet" );
logmessage( oProp.value );
function Obj( s ) {
var oColl = new ActiveXObject( "XSI.Collection" );
oColl.items = s;
if ( oColl.count == 1 ) {
return oColl(0);
}
if ( oColl.count == 0 ) {
logmessage( "Obj(" + s + "): no item found",
siWarning );
return null;
}
return oColl;
}
> -----Original Message-----
> From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On
> Behalf Of André Adam
> Sent: 30 January 2007 13:15
> To: XSI(at)Softimage.COM
> Subject: Re: Scriping Character Key Sets
>
> Hi!
>
> While I'm more than happy that these two lines plain work, I'm
> absolutely fascinated that I can't find any way other than using
> SetValue to access the IsCharacterKeySet parameter. It appears to be
> completely invisible to any Method or Property access I can think of...
> :) Is this a correct observation?
>
> var oCustomProp = ActiveSceneRoot.AddProperty("CustomProperty");
> SetValue(oCustomProp + ".IsCharacterKeySet", true);
>
> Cheers!
>
> -André
>
>
> Luc-Eric Rousseau wrote:
> > right.. I wrote all the CKS commands in scripting to make sure you
> > could write any custom, so definitely the code in
> CharacterKeySets.vbs
> > is there to be looked at!
> >
> >
> >> -----Original Message-----
> >> From: André Adam
> >>
> >>
> >> Thanks for the info! If it only was for recoding the commands, I
> >> wouldn't waste any time there but use the commands instead.
> >> It's about
> >> creating customised functionality which is not exposed through the
> >> commands provided...
> >>
> >> Thanks again!
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
> body:
> unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi