sibarrick Posted July 1, 2005 Share Posted July 1, 2005 What do I need in cookMyGuide1 just to get the geometry from an input to be displayed unaltered? The only example I can find is in Flatten.C and that creates it's own guide geometry. I thought all you would need to do would be to duplicate the appropriate source just as you do with cookmysop using duplicateSource( 1, context ); but that doesn't appear to work. I also thought perhaps I don't need to do anything since Houdini would by default just draw the inputs as guide geometry. But that doesn't work either. Any pointers? 1 line or pages either is good. Quote Link to comment Share on other sites More sharing options...
George Posted July 2, 2005 Share Posted July 2, 2005 I don't think duplicateSource will work because it is used to copy into the gdp pointer -- but a good guess though Try: GU_Detail *in_gdp = (GU_Detail *)inputGeo(1, context); if (in_gdp) myGuide1->copy(*in_gdp); In the cookMyGuide1() method after you lock the inputs. Hope that helps. George. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted July 2, 2005 Author Share Posted July 2, 2005 I'll give it a try. I tried inputGeo(1, context) but wasn't sure what to do with it, I was missing the vital copy command in myGuide1->copy(*in_gdp); ta. 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.