THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/04/2005 at 06:09, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.503
Platform: Windows ; Mac OSX ;
Language(s) : C.O.F.F.E.E ;
---------
I'm trying to convert a point selection into an edge selection to set a phong break on a polygon object. However, I can't seem to get the SendModellingCommand to do anything...
Heres what I'm doing (assuming I have a active point selection)
var data2=new(BaseContainer);
data2->SetData(MDATA_CONVERTSELECTION_LEFT,IDC_CONVERTSELECTION_LEFT_1);//Set From to "Points"
data2->SetData(MDATA_CONVERTSELECTION_RIGHT,IDC_CONVERTSELECTION_RIGHT_2);//Set To to "Edges"
data2->SetData(MDATA_CONVERTSELECTION_TOLERANT,FALSE);//No tolerant conversion
SendModelingCommand(MCOMMAND_CONVERTSELECTION,doc,obj,data2,MODIFY_ALL);
But this code does absolutely nothing as far as I can see, the edge selection stays empty. Could anyone please point me in the right direction here? Or is there maybe another waay to select the edges of an object?
Thanks in advance,
Mike