検索 - User list
Full Version: Tk problem
Root » Technical Discussion » Tk problem
Phillip
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?
wolfwood
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.
wolfwood
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.
Phillip
Thanks a lot for all you help guys….I love this board
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB