>
> I've never figured out how to even install numpy :P

Well, that's not too hard. `pip install numpy` should do it.

I created a JScript command and call it from Python to only get the final
> results and it became 3 times faster.

Hmm. nice workaround, I guess as long as it solves the performance issue
plus get rids of the adding unnecessary dependencies and makes distribution
easier, I think this to be a better approach. I agree with your choice.

On Sat, Nov 19, 2016 at 4:49 PM, Martin Yara <[email protected]> wrote:

> No I'm not using any additional module, only vanilla Python included in
> Softimage. I though it would be more difficult to distribute and to be
> honest I've never figured out how to even install numpy :P
>
> My problem was that in my test model ( 10,000 points, 240 deformers )
> getting the array was taking like 0.7 seconds
>
> weights = envOp.Weights.Array
>
> while doing it with JScript was 0.2 seconds
>
> var VBWeights = new VBArray( envOp.Weights.Array )
>
> and since I'm recalculating the average weights with every selection or
> weight change, 0.7 seconds feels like a long time. Waiting 0.3 seconds is
> more bearable.
>
> So I created a JScript command and call it from Python to only get the
> final results and it became 3 times faster.
>
> I'll try to test numpy as soon as I can figure out how to install it.
>
> Martin
>
>
>
> On Fri, Nov 18, 2016 at 10:01 PM, Alok Gandhi <[email protected]>
> wrote:
>
>> Hey Martin,
>>
>> Good Job! I haven't gone through the code but for performance issue with
>> python, did you think about using `numpy` or perhaps `cython`(to write `C`
>> extensions) or you are already using one of these.
>>
>> - Alok
>>
>> On Fri, Nov 18, 2016 at 8:42 PM, toonafish <[email protected]> wrote:
>>
>>> Looks very cool, muchas gracias senior !
>>>
>>> - Ronald
>>>
>>> On 18 Nov 2016, at 12:17, Martin Yara <[email protected]> wrote:
>>>
>>> I finally decided to share the weights tool I've been writing for the
>>> last few months.
>>>
>>> https://vimeo.com/191796419
>>>
>>> Everything is in Python and Jscript. I rewrote some commands in JScript
>>> to make it faster because Python was like 3 times slower to just get the
>>> Weights array. Now that I think about it VBScript would have been a little
>>> faster.
>>> Probably I should try C to handle more deformers faster, but it is doing
>>> the job for our current game project.
>>>
>>> I've included a workgroup with PySide and PyQtForSoftimage for easy
>>> installation but I'm not sure if I'm infringing something with this. If
>>> there is any problem please let me know and I'll pull it out.
>>>
>>> Martin
>>> ------
>>> Softimage Mailing List.
>>> To unsubscribe, send a mail to [email protected]
>>> with "unsubscribe" in the subject, and reply to confirm.
>>>
>>>
>>>
>>> ------
>>> Softimage Mailing List.
>>> To unsubscribe, send a mail to [email protected]
>>> with "unsubscribe" in the subject, and reply to confirm.
>>>
>>
>>
>>
>> --
>>
>> ------
>> Softimage Mailing List.
>> To unsubscribe, send a mail to [email protected]
>> with "unsubscribe" in the subject, and reply to confirm.
>>
>
>
> ------
> Softimage Mailing List.
> To unsubscribe, send a mail to [email protected]
> with "unsubscribe" in the subject, and reply to confirm.
>



--
------
Softimage Mailing List.
To unsubscribe, send a mail to [email protected] with 
"unsubscribe" in the subject, and reply to confirm.

Reply via email to