Tk problem

   5301   3   0
User Avatar
Member
17 posts
Joined: 7月 2005
Offline
Hi,

Im trying to print the currently selected object through the tk console:

If I type: echo `opselect(“/obj”)` in my textport it gives me what I want, but if I try: hscript echo {`opselect(“/obj”)`} in my tk console I get an error.

Does anyone have an answer for this one?
Thanks again,
Phillip
User Avatar
Member
4271 posts
Joined: 7月 2005
Offline
Here is something interesting,

hscript echo {`opselect(“/obj”)`}
gives a “Bracing error”

but if you have a space in between the {}'s and ``'s like,
hscript echo { `opselect(“/obj”)` }

it gives { model }


Do the quoting bracers need to have spaces inbetween them?

jim.
if(coffees<2,round(float),float)
User Avatar
Member
4271 posts
Joined: 7月 2005
Offline
There is a small discussion about this on the mailing list.

Here is the link,
http://www.sidefx.com/community/interact/mailarchive/index.php?view=WEB&perpage=20&revdate=on&datestart=&dateend=&author=&subject=&exactsubject=Tk+scripting+and+Houdini&search=&submit=Apply [sidefx.com]

Or you could just search for “Tk scripting houdini”

jim.
if(coffees<2,round(float),float)
User Avatar
Member
17 posts
Joined: 7月 2005
Offline
Thanks a lot for all you help guys….I love this board
Thanks again,
Phillip
  • Quick Links