FindObjects in JScript 2004-05-24 - By kim aldis
Back Either way, anything that takes an xsi object as an argument isn't likely to be native jscript, so I guess it has to be Xsi.
>From the xsi docs:-
FindObjects
Description
Finds objects by their type.
Scripting syntax
FindObjects( [Path], [Type] )
Returns an XsiCollection object that contains the found objects.
> -- --Original Message-- -- > From: owner-xsi@(protected) > [mailto:owner-xsi@(protected)] On Behalf Of Bernard Lebel > Sent: 24 May 2004 14:43 > To: XSI@(protected) > Subject: Re: [Script] FindObjects in JScript > > Thanks for advice, Kim. > > But it's not documented anywhere in any docs. > > Cheers > Bernard > > > -- -- Original Message -- -- > From: "kim aldis" <kim@(protected)> > To: <XSI@(protected)> > Sent: Monday, May 24, 2004 11:29 AM > Subject: RE: [Script] FindObjects in JScript > > > > > > Jscript doesn't support empty arguments. If you want that first > > argument > to > > default, give it null, not an empty space. > > > > Just a hint; this kind of function, if it's available from vbscript > > then > it > > should be available to jscript; it's an xsi function, not a > language > > dependant one. > > > > > -- --Original Message-- -- > > > From: owner-xsi@(protected) > > > [mailto:owner-xsi@(protected)] On Behalf Of Bernard Lebel > > > Sent: 24 May 2004 10:11 > > > To: XSI@(protected) > > > Subject: [Script] FindObjects in JScript > > > > > > Hello, > > > > > > I'm trying to convert a VBScript in JScript but I have > problems. The > > > script is using an undocumented feature called FindObjects. > > > > > > I'd like to know if there is an equivalent in JScript, or even a > > > better way to do that. I'm trying to collect all the > instances of a > > > specific shader in a scene. > > > > > > > > > VBScript: > > > Dim assurf : assurf = "{0B46C13F-9610-4022-8162-6A8F3B496265}" > > > set oAsSrf = FindObjects(,assurf) > > > > > > JScript (throws a synthax error at the second line): > > > var oShader = "{8993CE15-2D6D-4A5E-8308-61690E59F415}"; > > > var oDT = FindObjects( , oShader ); > > > > > > > > > > > > Thanks > > > Bernard > > > --- > > > Unsubscribe? Mail Majordomo@(protected) with the > following text in > > > body: > > > unsubscribe xsi > > > > > > > > > > > > > > > > > --- > > Unsubscribe? Mail Majordomo@(protected) with the > following text in body: > > unsubscribe xsi > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following > text in body: > unsubscribe xsi > > >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|