Graphics Programs Reference
In-Depth Information
Figure 4-47 . Selecting Obj and Mtl files
Using the Parser
To use this parser, you must provide correct paths to a couple of necessary files.
So, open the parser.pl file in a text editor of your choice to make the following
changes:
1. In line 40, replace the string value for scalar $obj_file_parent_path with
the full path for the folder in which you have copied the Obj and Mtl
files. On Windows, if the folder containing these files is “Blender” and
is directly under “D:\”, then line 40 should be set to
$obj_file_parent_path = “D:/Blender/”;. Similarly, if you are on a *nix
system, inside your home directory (/home/username/), and the Obj and
Mtl files are inside /home/username/Blender/, set the value of scalar
$obj_file_parent_path as “home/username/Blender/”.
2. In line 326, replace the path (only the path, not the scalars with white
spaces—“ $rx $ry $rz”) inside backticks with full path to the preci-
sion.pl file, that is, if you moved the folder (prateekmehta-
blender_obj_perl_parser_bitbucket-2cb343b9e1a5) with Perl files direc-
tly under “D:\”, then line 326 should be set to @output =
`D:\\prateekmehta-
blender_obj_perl_parser_bitbucket-2cb343b9e1a5\\Utility\\precision.pl
$rx $ry $rz`;. Similarly, proceed in a suitable way if you are on a *nix
system.
 
Search WWH ::




Custom Search