Jump to content

simport(): no signature/can't assign void


cgdougm

Recommended Posts

Anyone else come across problems with simport()? I was some discussions about fog but didn't seem related.

I'm trying to get the surface variables "Cd" and "Alpha" as used in the point SOP.

If I try to use the "Import Surface Variable" VOP I get an error saying:

Cannot find a signature with the correct arguments and return type for the "simport" function.

A value of type of "void" cannot be assigned.

// Code produced by: simport1
found = simport("Cd", val);
if( found == 0 ) val = {0.0, 0.0, 0.0};

TIA

Using Houdini 11.0.733, win7

Link to comment
Share on other sites

Cannot find a signature with the correct arguments and return type for the "simport" function.

A value of type of "void" cannot be assigned.

Sounds like you're doing it in SOPS or surface shader, aren't you?

If so, Import Surface Variable VOP (and underlying simport()) is meant to be used inside light/shadow/fog shaders. In surface shaders or in VOPSOP you use geometry attributes by creating a parameter/variable of the same name and type. So a parameter called "Cd" of type "vector" will be overwritten by geometry color attribute.

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