pushpathadam Posted November 5, 2005 Share Posted November 5, 2005 Hi, I'm tryiing to edit an expression string in houdini 7 ex: ch("../sphere1/radx")*10 with ch("../sphere1/rady")*20 Some failed attempts . chkey -f 1001 -F "ch("../sphere1/rady")*20" /obj/geo1/xform1/ty does nothing... opparm -C /obj/geo1/xform1 ty "ch("../sphere1/rady")*20" gives ...Warning: Invalid channel "ch(../sphere1/rady)*20" specified in parameter Tried some other variants with single quotes .without success. Does anyone know how to go about doing this. thanks Tom Quote Link to comment Share on other sites More sharing options...
Jason Posted November 6, 2005 Share Posted November 6, 2005 Hey Tom! I believe it may work if you escape the quotes in the expression itself, i.e.: chkey -f 1001 -F "ch(\"../sphere1/rady\")*20" /obj/geo1/xform1/ty Quote Link to comment Share on other sites More sharing options...
pushpathadam Posted November 7, 2005 Author Share Posted November 7, 2005 Awesome!...that hit the nail right on the head! thanks Jason! Tom Jason Hey Tom! I believe it may work if you escape the quotes in the expression itself, i.e.: chkey -f 1001 -F "ch(\"../sphere1/rady\")*20" /obj/geo1/xform1/ty 22411[/snapback] Quote Link to comment Share on other sites More sharing options...
George Posted November 8, 2005 Share Posted November 8, 2005 I also like using single quotes: chkey -f 1001 -F 'ch("../sphere1/rady")*20' /obj/geo1/xform1/ty It may be simpler to read. The idea with single quotes is that they don't evaluate their contents, so if you have a variable that you don't want to dereference right away, you'd have to use this method. Quote mangling is no fun George. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.