  | | | Doc example not working in JScript? | Doc example not working in JScript? 2004-05-26 - By Bernard Lebel
Back 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
|
|
 |