Translating String

Translating String

Anonymous
Not applicable
681 Views
3 Replies
Message 1 of 4

Translating String

Anonymous
Not applicable

When the text for the name is not as a string, it works. The text that ends with .vtx, it's the name of the object I'm trying to access. But I need it as a string cus I want the name to change as I create more objects so I don't access the same object all the time, I'm executing the script. But when I'm trying to write it as a string as you can see I'm doing here, it doesn't work I get syntax errors.

Untitled.png

0 Likes
682 Views
3 Replies
Replies (3)
Message 2 of 4

tdHendrix
Collaborator
Collaborator

Hi, try changing this:

|($name).vtx[0]

 

To this:
($name + ".vtx[0]")

 

Also try changing |$name to just $name.


Greg Hendrix - Senior Technical Animator
LinkedIn : Twitter
0 Likes
Message 3 of 4

Anonymous
Not applicable
Tried that, doesn't work :S I save the name with -ls -l -sl then I want to
use that name, as a variable, but it doesn't work.
0 Likes
Message 4 of 4

tdHendrix
Collaborator
Collaborator

Can you post a bit more of the code that you're trying to run that's giving you an error? I want to see what $nrTwo is set to.


Greg Hendrix - Senior Technical Animator
LinkedIn : Twitter
0 Likes