Jump to content

The New "import" keyword in H13


abvariant

Recommended Posts

Hello all!

I've noticed that in Houdini 13, within the directlighting VOP node, the outer code reads:
 

import directlighting;

Rather than the old way of specifying the whole function.

This is good.

But how do I import functions? Whenever I place "import directlighting;" in the outer code of any of my nodes, I get the following error:
Failed to import function 'directlighting'. (30,1:21)

In addition, I get an identical error when trying to import it within a header. Importing it in a header is what I actually want to do: my main aim is to call directlighting() from within a header.

What do I need to do to get imports working?

Thanks!

 

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