[C++][CustomOp] - UV Cluster update problem

2012-05-09 Thread Oleg Bliznuk
Hi list, Recently I have encountered with the problem that I cant update UVs and Usernormals clusters on the mesh. Situation is here: I have a some custom op connected to some original geometry ( input ) and setted on the some result geo ( output ). Work is going in the operator update callback. To

Re: [C++][CustomOp]

2012-05-02 Thread Oleg Bliznuk
Thanks guys, GetSource() works well in my case. >>can't you use the OperatorContext and use either GetOutputTarget ? It's return the valid cref only in the Execute Command callback, but in the Operator Update I always get something very empty :-) Thanks, -Oleg

Re: [C++][CustomOp]

2012-05-01 Thread jo benayoun
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 > can't you use the OperatorContext and use

Re: [C++][CustomOp]

2012-05-01 Thread Steven Caron
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) # IN

[C++][CustomOp]

2012-05-01 Thread Oleg Bliznuk
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"