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?
 
Doc example not working in JScript?

Doc example not working in JScript?

2004-05-26       - By Bernard Lebel

 Back
Reply:     1     2     3  

Hello,

Yet another scripting question today, and yet another that might get
answered.... :-)

In the docs there is an example, in the Pass object entry, showing how to
get the render options.
Well I'm trying this very example in JScript and I can't make it to work.

The doc example is
-- ---- ---- ---- ---- --
VBScript Example
' The following script will dump the rendering options for a
' given pass and access the imagefilename parameter.

Set oPass = Project_ActivePass()
Set oRenderOptions = Pass_RenderOptions( oPass )

' Dump render options values
For Each param in oRenderOptions.Parameters
LogMessage param.FullName & " = " & param.Value
Next

' Get image file name
sImageFileName = oRenderOptions.Parameters("ImageFileName").Value
LogMessage sImageFileName


Function Project_ActivePass()
Set Project_ActivePass = GetValue( "Passes.Default_Pass" )
End Function


Function Pass_RenderOptions( oPass )
Set Pass_RenderOptions = GetValue( oPass & ".RenderOptions" )
End Function
-- ---- ---- ---- ------

And my script is

var oHairPass = g.item();
var oHairPassOpt = getvalue( oHairPass + ".RenderOptions" );


When I run this, I get an error with the getvalue command:
//ERROR : "2001-GetValue - Argument 0 is invalid - [line 305]"




Thanks
Bernard
---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi