Jump to content

Python doubt


Omy

Recommended Posts

I have used set contents to pass the script to a python module in the edit parameter window

now I have a problem with python scripting

whenever I pass t2=t1.split('\\n') by setcontents method to the python module

the code gets passed as t2=t1.split('\n')

? I have also tried t2=t1.split(r'\\n')but no results!

any solutions?

Link to comment
Share on other sites

I have used set contents to pass the script to a python module in the edit parameter window

now I have a problem with python scripting

whenever I pass t2=t1.split('\\n') by setcontents method to the python module

the code gets passed as t2=t1.split('\n')

? I have also tried t2=t1.split(r'\\n')but no results!

any solutions?

t2=t1.split('\n') seems to work fine for me... what does your string look like / what are you expecting to return?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...