Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
FindObjects in JScript

FindObjects in JScript

2004-05-24       - By Guy Rabiller

 Back
Reply:     1     2     3     4     5     6     7     8  

It's in the v4 docs.

--
guy rabiller | 3d technical director @ LaMaison


Bernard Lebel wrote:

>I don't know where you got that but I really searched for it, as well as
>Graham, and could not find anything. Is this from a "newer" version of XSI?
>
>Bernard
>
>
>-- -- Original Message -- --
>From: "kim aldis" <kim@(protected)>
>To: <XSI@(protected)>
>Sent: Monday, May 24, 2004 4:13 PM
>Subject: RE: [Script] FindObjects in JScript
>
>
>  
>
>>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
>>>>>          
>>>>>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
 <title></title>
</head>
<body>
It's in the v4 docs.<br>
<pre class="moz-signature" cols="$mailwrapcol">--
guy rabiller | 3d technical director @ LaMaison</pre>
<br>
Bernard Lebel wrote:<br>
<blockquote type="cite"
cite="midBAY15-DAV8OSQeSOzNC00077dce@(protected)">
 <pre wrap="">I don't know where you got that but I really searched for it, as
well as
Graham, and could not find anything. Is this from a "newer" version of XSI?

Bernard


-- -- Original Message -- --
From: "kim aldis" <a class="moz-txt-link-rfc2396E" href="mailto:kim@(protected)
.uk">&lt;kim@(protected)&gt;</a>
To: <a class="moz-txt-link-rfc2396E" href="mailto:XSI@(protected)">&lt;XSI
@(protected)&gt;</a>
Sent: Monday, May 24, 2004 4:13 PM
Subject: RE: [Script] FindObjects in JScript


 </pre>
 <blockquote type="cite">
   <pre wrap="">Either way, anything that takes an xsi object as an argument
isn't likely
   </pre>
 </blockquote>
 <pre wrap=""><!---->to
 </pre>
 <blockquote type="cite">
   <pre wrap="">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.



   </pre>
   <blockquote type="cite">
     <pre wrap="">-- --Original Message-- --
From: <a class="moz-txt-link-abbreviated" href="mailto:owner-xsi@(protected)"
>owner-xsi@(protected)</a>
[<a class="moz-txt-link-freetext" href="mailto:owner-xsi@(protected)">mailto
:owner-xsi@(protected)</a>] On Behalf Of Bernard Lebel
Sent: 24 May 2004 14:43
To: <a class="moz-txt-link-abbreviated" href="mailto:XSI@(protected)">XSI
@(protected)</a>
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" <a class="moz-txt-link-rfc2396E" href="mailto:kim@(protected)
.uk">&lt;kim@(protected)&gt;</a>
To: <a class="moz-txt-link-rfc2396E" href="mailto:XSI@(protected)">&lt;XSI
@(protected)&gt;</a>
Sent: Monday, May 24, 2004 11:29 AM
Subject: RE: [Script] FindObjects in JScript


     </pre>
     <blockquote type="cite">
       <pre wrap="">Jscript doesn't support empty arguments. If you want that
first
argument
       </pre>
     </blockquote>
     <pre wrap="">to
     </pre>
     <blockquote type="cite">
       <pre wrap="">default, give it null, not an empty space.

Just a hint; this kind of function, if it's available from vbscript
then
       </pre>
     </blockquote>
     <pre wrap="">it
     </pre>
     <blockquote type="cite">
       <pre wrap="">should be available to jscript; it's an xsi function, not a
       </pre>
     </blockquote>
     <pre wrap="">language
     </pre>
     <blockquote type="cite">
       <pre wrap="">dependant one.

       </pre>
       <blockquote type="cite">
         <pre wrap="">-- --Original Message-- --
From: <a class="moz-txt-link-abbreviated" href="mailto:owner-xsi@(protected)"
>owner-xsi@(protected)</a>
[<a class="moz-txt-link-freetext" href="mailto:owner-xsi@(protected)">mailto
:owner-xsi@(protected)</a>] On Behalf Of Bernard Lebel
Sent: 24 May 2004 10:11
To: <a class="moz-txt-link-abbreviated" href="mailto:XSI@(protected)">XSI
@(protected)</a>
Subject: [Script] FindObjects in JScript

Hello,

I'm trying to convert a VBScript in JScript but I have
         </pre>
       </blockquote>
     </blockquote>
     <pre wrap="">problems. The
     </pre>
     <blockquote type="cite">
       <blockquote type="cite">
         <pre wrap="">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
         </pre>
       </blockquote>
     </blockquote>
     <pre wrap="">instances of a
     </pre>
     <blockquote type="cite">
       <blockquote type="cite">
         <pre wrap="">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
         </pre>
       </blockquote>
     </blockquote>
   </blockquote>
 </blockquote>
</blockquote>
<br>
</body>
</html>