Jump to content

How to write arnold Procedural can read houdini node


Recommended Posts

i want to write a arnold Procedural geometry dso which can read houdini node ,

i use sop string path as parm 

 

 

---------------------code---------------------

static int MyInit(AtNode *mynode, void **user_ptr)
{
   *user_ptr = mynode; // make a copy of the parent procedural
 
   soppath = AiNodeGetStr(mynode, "path");
 
   OP_Node *node;
   SOP_Node *sop;
   
 
   node = OPgetDirector()->findNode(soppath);
 
   //sop->getFullPath(soppath);
 
 
 
std::cout<<soppath<<std::endl;
 
   G_counter = 0;
   return true;
}

---------------------code---------------------

 

but when i render with procedural dso 

Will pop up error warning:"UT_NetPacket::read: No such file or directory"

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