doc Posted July 11, 2007 Share Posted July 11, 2007 Hi, I was wondering how you'd go about setting up local variables from the second input of your sop. Things like $NX2, $TY2, $FOO2 etc. is there a way to get setupLocalVars() to do this for you? thanks L Quote Link to comment Share on other sites More sharing options...
mike jones Posted August 10, 2007 Share Posted August 10, 2007 Hi Doc, Did you find out anything about this? I've been asked to put together a SOP with this functionality and I'm not sure how to go about it. Cheers, Mike Quote Link to comment Share on other sites More sharing options...
doc Posted August 10, 2007 Author Share Posted August 10, 2007 Just figured it out the other day. I got a couple of things to do first but I'll post in an hour or two. L Quote Link to comment Share on other sites More sharing options...
doc Posted August 10, 2007 Author Share Posted August 10, 2007 (edited) here you go myCurGdp[0] = gdp; myCurGdp[1] = inputGeo(1,context); setupLocalVars(); GU_Detail *igdp = (GU_Detail *) inputGeo(1, context); ... if (error() < UT_ERROR_ABORT && cookInputGroups(context) < UT_ERROR_ABORT) { FOR_ALL_OPT_GROUP_POINTS(gdp, myGroup, ppt) { myCurPt[0] = ppt; if(igdp!=NULL) { if (ppt->getNum() >= igdp->points().entries()) myCurPt[1] = 0; else myCurPt[1] = igdp->points()(ppt->getNum()); } and that should do the trick, let me know if you run into trouble. L Edited August 10, 2007 by doc 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.