Hey Oleg, most of times, GetSource() with operators returns empty references in cpp. You can still try it, with some luck, you should get the operator itself and then by a call to GetParent3DObject() whhat you're looking for. jo
2012/5/1 Steven Caron <[email protected]> > can't you use the OperatorContext and use either GetOutputTarget ? or > maybe use GetSource to get the operator itself and navigate up? > > i haven't tried it in c++ but a simple runtime SCOP with this in the > Update callback works... > > Application.LogMessage(In_UpdateContext.Operator.Parent3DObject) > # INFO : sphere > > s > > > On Tue, May 1, 2012 at 11:33 AM, Oleg Bliznuk <[email protected]> wrote: > >> Hi List, >> a simple question about custom op. I have a custom op which can has >> either 1 or 2 input geometries and connected to polymesh of created geo as >> output target ( see screenshot ).I need to get name of the global parent ( >> X3DObject ) of the object on which this operator is applied ( "grid_FR" in >> my case ). The SDK says that I am unable to do it from the operator update >> callback, only from ExecuteCommand. So is there way to obtain this name >> without creating any additional properties\userdatas etc in the op update >> callback ? Something like this which works validly in executeCommand >> callback : >> >> Application().LogMessage ( "GLOB NAME: " + >> mainMeshObj.GetActivePrimitive().GetParent3DObject().GetName() ); >> >> Many thanks, >> -Oleg >> >> >> >

