doppelganger
11-02-2003, 01:55 AM
Still working on my mel/perl interface to the command line render. I have a bit of code that is supposed to read the render global values for a specific scene file into a txt file on the c drive.
When I run it I get the error
// Error: line 9: Message attributes have no data values. //
Not sure why this dosent work. What am I missing here? From what I though I did this cycles thru all the attributes and querries their values. I think it is dying on the first value "message" does anyone know what this is?
Thanks
Scott
string $globals[] = `listAttr defaultRenderGlobals`;
$globals = `sort $globals`;
string $filename = ("c:\\render_globals.txt");
int $fileID = `fopen $filename "w"`;
for ( $eachitem in $globals ){
string $atribValueCmd = "defaultRenderGlobals." + $eachitem;
$atribValueCmd = " defaultRenderGlobals." + $eachitem;
string $atribValue = `getAttr $atribValueCmd`;
fprint $fileID ($eachitem + "\n" + $atribValue);
}
fclose $fileID;
When I run it I get the error
// Error: line 9: Message attributes have no data values. //
Not sure why this dosent work. What am I missing here? From what I though I did this cycles thru all the attributes and querries their values. I think it is dying on the first value "message" does anyone know what this is?
Thanks
Scott
string $globals[] = `listAttr defaultRenderGlobals`;
$globals = `sort $globals`;
string $filename = ("c:\\render_globals.txt");
int $fileID = `fopen $filename "w"`;
for ( $eachitem in $globals ){
string $atribValueCmd = "defaultRenderGlobals." + $eachitem;
$atribValueCmd = " defaultRenderGlobals." + $eachitem;
string $atribValue = `getAttr $atribValueCmd`;
fprint $fileID ($eachitem + "\n" + $atribValue);
}
fclose $fileID;
