Arthur~Chiu Posted February 28, 2014 Share Posted February 28, 2014 static voidsopBuildRestGroup(void *data, PRM_Name *choicenames, int listsize,const PRM_SpareData *spare, PRM_Parm *parm){SOP_Node *sop = CAST_SOPNODE((OP_Node *)data);if( sop ){sop->buildInputGroups( SOP_REST_INPUT, choicenames, listsize,PRIM_GROUP, 0, true, parm );}else{choicenames[0].setToken(0);choicenames[0].setLabel(0);}}static PRM_ChoiceList sopRestGroupMenu(PRM_CHOICELIST_TOGGLE,sopBuildRestGroup); I copied the code in my codeThe result error: error C2664: “PRM_ChoiceList::PRM_ChoiceList(PRM_ChoiceListType,PRM_Name *)”: Parameters 2 can not be “void (__cdecl *)(void *,PRM_Name *,int,const PRM_SpareData *,PRM_Parm *)”convert to“PRM_Name *” Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted February 28, 2014 Share Posted February 28, 2014 Have you tried to look into HDK documentation part about parameters? I think the info there is more than enough to make it work, as long as you understand C++ and that you didn't jumped there by assuming that just copy pasting code will make it work. Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted October 31, 2014 Share Posted October 31, 2014 This topic should clarify some things -> http://forums.odforce.net/topic/21167-update-attribute-menu/ 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.