Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / XSI SDK / picking data from a curve in toolcontext
  RSS 2.0 ATOM  

picking data from a curve in toolcontext
Rate this thread
 
59652
 
Permlink of this thread  
avatar
  • Total Posts: 1
  • Joined: 25 March 2009 09:03 AM

I am tring to make a custom tool using tool context. I want to be able to pick a specific point along the length of the curve. I thought that the appropriate subcomponant filter would be siIsopointFilter but the CRefArray that is returned is empty and I would have thought that for a isopoint a value value would be returned.

this is the code used for the pick session.

CRefArray objects;
 
in_ctxt.Pickl_pointssiPickSingleObjectsiPickRaycastL""CRefArray(), objects );

 if ( 
objects.GetCount() > )
 
{
 CRefArray components
;
 
in_ctxt.Pickl_pointssiPickSingleSubComponentsiPickRaycastsiUKnotCurveFilterobjectscomponents ); 
 
}

simon



Replies: 0