Jump to content

How to copy pointgroup from different time


Recommended Posts

i want to copy pointgroup at one frame ,and to use this pointgroup at different time,but when i use it at other time ,it will error, 

 

/////code

gdp = (GU_Detail *)sop->getCookedGeo(context);

 

GA_PointGroup *point_group =0;

if(!point_group)

    point_group  = gdp->newPointGroup("_ss_",1);

point_group->clear();

 

//append point offset in the group

for()  

{

   point_group->addOffset(i);

}

 

//now i have a pointgroup

 

//time set code

context.setTime(OPgetDirector()->getChannelManager()->getTime(*(user_time)));

gdp = (GU_Detail *)sop->getCookedGeo(context);
 
cout<<point_group->entris();
error 
 
the "user_time" is variable 
 
why ?and how to fix ? someone can help me? thanks!
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...