#1
|
|||
|
|||
File Path 4 Object Load
I know this is very basic but how do you load an object from a dirctory remote to Vizard's installation.
I did scan help and tutorials I tried whirlpool = viz.add(c:\code&game\corevrml\mywhirlpool_2.wrl') and got ERROR failed to load................... |
#2
|
|||
|
|||
Hi,
Backslash characters are a special case in strings. For instance, when you want to instert a newline or a tab in a string you would use \n and \t, respectively. If you want to insert an actual backslash character you would have to use to backslashes, \\. Alternatively you could use forward slashes or mark the string as raw by placing an r character before the string: Code:
viz.add(r'c:\code&game\corevrml\mywhirlpool_2.wrl') |
|
|