WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-18-2007, 12:59 PM
vizmaster vizmaster is offline
Member
 
Join Date: Aug 2006
Posts: 27
Unexpected carriage return

When adding a texture from a file any \r in the filename is seen as a carriage return.
C:\Tester\retest is seen as C:\Tester\
etest
To get around this I either add a different character to the before the "r" or an additional \. Is this suppose to be how it works?
__________________
VizMaster
Reply With Quote
  #2  
Old 01-18-2007, 01:05 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can also use the following to allow backslashes in strings:
Code:
path = r'C:\Tester\retest'
Placing an r before the string tells python not to translate backslash expressions.
Reply With Quote
  #3  
Old 01-18-2007, 01:09 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Forgot to mention, you can also use forward slashes.
Reply With Quote
  #4  
Old 01-23-2007, 12:46 PM
vizmaster vizmaster is offline
Member
 
Join Date: Aug 2006
Posts: 27
Thanks,
I will give the suggestions a try. I forget the I am dealing with an interpretive language.
__________________
VizMaster
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 12:53 PM.


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