RE: [C++] passing a STD:vector in context.PutAttribute

2013-09-25 Thread Matt Lind
@listproc.autodesk.com Subject: [C++] passing a STD:vector in context.PutAttribute Hello list people, I'm working on a C++ command and I'm using openMP to multitrhead the computation. As Softimage Arrays don't play nice with openMP I'm stuck with STD::vectors. Now I would like that command to output

Re: [C++] passing a STD:vector in context.PutAttribute

2013-09-25 Thread Raffaele Fragapane
No current major DCC app out there that I know has a thread safe SDK for concurrency, maybe for some specific parts, but not for the actual application and data objects outside such domains, not even the bare fundamentals. They were all conceived in the late 90s and revisited somewhat in the

Re: [C++] passing a STD:vector in context.PutAttribute

2013-09-25 Thread Ahmidou Lyazidi
** ** ** ** ** ** ** ** *From:* softimage-boun...@listproc.autodesk.com [mailto: softimage-boun...@listproc.autodesk.com] *On Behalf Of *Ahmidou Lyazidi *Sent:* Tuesday, September 24, 2013 1:38 AM *To:* softimage@listproc.autodesk.com *Subject:* [C++] passing a STD:vector

[C++] passing a STD:vector in context.PutAttribute

2013-09-24 Thread Ahmidou Lyazidi
Hello list people, I'm working on a C++ command and I'm using openMP to multitrhead the computation. As Softimage Arrays don't play nice with openMP I'm stuck with STD::vectors. Now I would like that command to output that vector (that is multidimentional by the way), so I was wondering if there

Re: [C++] passing a STD:vector in context.PutAttribute

2013-09-24 Thread Christopher Crouzet
I'm no expert and can't be sure but at first glance I'd say no - even if the internal structures of both the `std::vector` and the `CValueArray` were identical, or if the `CValueArray` was just a simple wrap of a `std:vector`, it would be unsafe to do a type cast, especially if you had to modify

Re: [C++] passing a STD:vector in context.PutAttribute

2013-09-24 Thread Ahmidou.xsi
Salut Christopher, That's what I was afraid of, and rebuilding the array to be CValue compatible make multithreading useless. The goal was to spit a 2D array to create an ICE attribute in python, as it's way simplier than in C++. But I'll try to create it in C++ again tomorrow. Merci!! -A Le 24