Jump to content

Caching of functions???


hoknamahn

Recommended Posts

Hi, guys!

Tonight i have a small headache :angry:

I want to check is something wired into my custom op or nothing wired.

I'm using expression like this:

`strlen(opinput("..", 1))`

and all works fine (if i connect something to my op, this expression returns number of characters in the name of wired op. if disconnect, expression returns 0. all works in "realtime").

But if i using my function (it does the same things):

`SwitchUIElements()`

i receive values not in realtime (it means what i must make changes in the scene, i.e. connect or disconnect operators, save scene, reload Houdini, reload scene. Then i can see the changes). In this case all seems like values of my function has been cached. But if i'm calling my function with opinput like this:

`SwitchUIElements(opinput("..", 1))`

all works fine and in realtime. How to make subj more correctly and beautifull? :huh:

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