bhenriksson Posted June 12, 2010 Share Posted June 12, 2010 I'm new to both C++ and HDK. I manage to get my compiled SOPs into houdini but it return an empty geo even with when the cook function consists of a simple `return error()`. I'm guessing the `gdp` is automatically used as output geo but how do I set this to be the old geo? Do I need to initialise anything to hook things up? grateful for any help Thx Quote Link to comment Share on other sites More sharing options...
edward Posted June 12, 2010 Share Posted June 12, 2010 What do you mean by the "old" geo? The "gdp" is the output geo. In SOPs, there is no built-in support for iteration. If you want to say take the geometry from the last frame, then you have to maintain that yourself. Quote Link to comment Share on other sites More sharing options...
bhenriksson Posted June 12, 2010 Author Share Posted June 12, 2010 What do you mean by the "old" geo? With "old" I meant "incoming". I got one incoming node, I thought it's geo was used as the `gdp`. Quote Link to comment Share on other sites More sharing options...
edward Posted June 12, 2010 Share Posted June 12, 2010 You call duplicateSource() with the input number that you want to copy into the gdp. See the SOP_Flatten.C example file Quote Link to comment Share on other sites More sharing options...
bhenriksson Posted June 12, 2010 Author Share Posted June 12, 2010 Thanks mate. So as I understand it now the gdp is by default empty? Quote Link to comment Share on other sites More sharing options...
edward Posted June 13, 2010 Share Posted June 13, 2010 Yes, as you've no doubt found out by now. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.