Jump to content

exhelp list? Print?


Recommended Posts

Hi all,

I am trying to print all the list of expressions which is whoen when I type "exhelp" in text port.

When I type this, I get only list of the names of the expressions..

Is there any way to get the explanations of all the expressions in one page?

So, I can copy them to MS Word or ant other text sofeware to print out the whole information.

Thanks,

-Jae

Link to comment
Share on other sites

Hi all,

I am trying to print all the list of expressions which is whoen when I type "exhelp" in text port.

When I type this, I get only list of the names of the expressions..

Is there any way to get the explanations of all the expressions in one page?

So, I can copy them to MS Word or ant other text sofeware to print out the whole information.

Thanks,

-Jae

Here: http://www.sidefx.com/docs/houdini9.1/expressions

You could also make some trick with piping help from texport to a file.

Link to comment
Share on other sites

Here: http://www.sidefx.com/docs/houdini9.1/expressions

You could also make some trick with piping help from texport to a file.

Thanks for quicking replying!

It seems like it shows only how it works, but is there any way to see not only explanation but

like this :

float fit01 (float num, float newmin, float newmax)

USAGE

fit01(num, newmin, newmax)

Returns a number between newmin and newmax that is relative to num

in the range between 0 and 1. If the value is outside the 0 to 1

it will be clamped to the new range.

EXAMPLES

| fit01(.3,5,20)=9.5

|

RELATED

* fit

* fit11

* fit10

thanks,

-j

Link to comment
Share on other sites

Hi all,

I am trying to print all the list of expressions which is whoen when I type "exhelp" in text port.

When I type this, I get only list of the names of the expressions..

Is there any way to get the explanations of all the expressions in one page?

So, I can copy them to MS Word or ant other text sofeware to print out the whole information.

Thanks,

-Jae

Hey Jae Yoo,

Do this in the textport:

foreach i ( `execute("exhelp")` )
echo $i >> c:/exhelp.txt
end

The above should print out all the help into a text file. The only issue is it's not alphabetical.

Cheers!

steven

Link to comment
Share on other sites

...or little longer in Python :huh: : (but saves *all help content)

functions= hou.hscript("exhelp")[0].split()
help_ = ["".join(hou.hscript("exhelp %s" % f)) for f in functions]
file = open("./help.txt", "w").writelines(help_)
file.close()

cheers,

sy.

Edited by SYmek
Link to comment
Share on other sites

Hey Jae Yoo,

Do this in the textport:

foreach i ( `execute("exhelp")` )
echo $i >> c:/exhelp.txt
end

The above should print out all the help into a text file. The only issue is it's not alphabetical.

Cheers!

steven

Hi, Thanks for replying.

It works, but it saves only the expression names..

what I want to print is detail information of each expressions explanation.

For example, for fit,

float fit (float num, float oldmin, float oldmax, float newmin, float newmax)

USAGE

fit(num, oldmin, oldmax, newmin, newmax)

Return a number between newmin and newmax that is relative to num

in the range between oldmin and oldmax. If the value is outside

the old range, it will be clamped to the new range.

EXAMPLES

| fit(3,1,4,5,20)=15

|

RELATED

* fit01

* fit11

* fit10

I wanted this information for every each expressions to print.

Thanks!

Edited by Jae Yoo
Link to comment
Share on other sites

Doh! I gave you the wrong line.

It should be:

foreach i ( `execute("exhelp")` )
 exhelp $i >> c:/exhelp.txt
 end

Cheers!

steven

And people say hscript is complicated and tedious compared to Python...! :o

Edited by SYmek
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...