newb script question

   3915   6   2
User Avatar
Member
19 posts
Joined: July 2005
Offline
Hi,

I'm trying to setup a script wich create some op and I have to get the result op name in case of duplicatas.

Following the scripting documentation I should be able to do something like this:

set sCam = ‘run(“opadd -v cam MyCam”)’
echo $sCam

and get the name of the newly created op.

However, doing this in the Textport, I get as echo the name of the command - and actualy, the command is not executed:

run(“opadd -v cam MyCam”)

What should I do to have this command executed and retrieve at the same time the actual name of the created op ?

Thanks in advance for any help.
User Avatar
Member
2199 posts
Joined: July 2005
Online
I just copied and pasted your expression it seems to be using quote marks and not forward ticks around your expression. Make sure you use these ` not '
The trick is finding just the right hammer for every screw
User Avatar
Member
19 posts
Joined: July 2005
Offline
Indeed. My mistake.

Thanks a lot.

ps: any french user arround ? It seems ALT+7 (`) doesn't work in the Textport from a french keyboard
User Avatar
Member
141 posts
Joined: July 2005
Offline
Hey Guy!

Good to see you on the Houdini side of things

cheers,

/R
/Rick
User Avatar
Member
19 posts
Joined: July 2005
Offline
Hey Rick!

Thanks :-)

Well, I had the feeling that sooner or later, it would be inevitable..

Cheers,

Guy.
User Avatar
Member
133 posts
Joined: July 2005
Offline
You can always use ‘ALT’ + code from character map. Which in case if backtick should be: ALT+0180.

Code is typed on numpad.
User Avatar
Member
19 posts
Joined: July 2005
Offline
The ALT+ doesnt work from the Textport, unfortunately ( at least here )

Nevermind, I ended up switching to a US QWERTY keyboard.

Thanks anyway for your help.
  • Quick Links