Jump to content

how can I source my own expression


kuaile_yzh

Recommended Posts

eg: there is a fuction

float bias(float b, float x)

{ return pow(x, log(B)/log(0.5)); }

——>

saved as bias.h

——>

when I enter houdini, from the edit menu

——>

open aliases and expressions menu

——>

Load Expresssions File hit Load Expressions file and load " bias.h"

----------------------------------------------------------------------------------

Every time I have to redo these steps in Houdini, is it possible let Houdini auto load it?

Link to comment
Share on other sites

how can I source my own expression in Houdini, so I do not need to reload it at each time when Houdini is opened.

You need to put a command:

exread bias.h 

into your 123.cmd or 456.cmd files (not sure if 123.py... will work too, but it should).

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...