PDA

View Full Version : Povray rendering error


egon
13th October 2003, 04:21 PM
I attempt to render to a povray file and get the following:

Error: can't read "render_command_param": no such variable.

The text of the error shows:


can't read "render_command_param": no such variable
can't read "render_command_param": no such variable
while executing
"set ns " $render_command_param""
invoked from within
".render.f.ok invoke"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke]"
(procedure "tk::ButtonUp" line 22)
invoked from within
"tk::ButtonUp .render.f.ok"
(command bound to event)


Any hints or ideas?

Andy
13th October 2003, 05:23 PM
Is this on Windows or Linux?

Please post the contents of the other fields in the render dialog.

Andy

egon
13th October 2003, 05:39 PM
This is on linux. The other fields are:

Output file type: Povray
Output filename: ac3dpovfile.pov
Render program: povray
Render parameters: +UV +UL +A0.2 +FT32 &

Andy
13th October 2003, 05:47 PM
I've just had a look at the code and it looks like there is a bug that shows if you don't put a %s in the render parameters.

So - please could you try adding a %s in the render parameters and trying that (you will need it anyway - this is where AC3D inserts the filename for povray).

This bug is in tcl/ac3drender.tcl:

# if render comand is not empty, look for %s and replace %s with the render_filename
if { $prefs_render_command_param != "" } {
set pos [string first "%s" $prefs_render_command_param]
set pos1 [expr $pos + 1]

if { $pos != -1 } {
set ns [string replace $prefs_render_command_param $pos $pos1 $prefs_render_filename]
} else {
set ns " $render_command_param"
}
} else {
set ns ""
}

The bold text should be $prefs_render_command_param

Andy