WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 09-22-2005, 10:55 PM
softscan2 softscan2 is offline
Member
 
Join Date: Sep 2005
Location: Newcastle, Australia
Posts: 11
Send a message via Yahoo to softscan2 Send a message via Skype™ to softscan2
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...................
Reply With Quote
  #2  
Old 09-23-2005, 09:59 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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')
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:01 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC