Конверсия Instancer’а в геометрию #2


Type: Maya Python Script (py)
Name: ark_instToGeo
Version: 2.0
Released: 2016.12.17
Download (Save as...)

Доработал свою старую утилиту для конвертации instancer‘а в геометрию – теперь значительно быстрее, стабильнее, понимает все возможные типы вращения инстансов (rotation и aim) и показывает прогресс и пишет финальную статистику в script editor.

ark_instToGeo GUI

Использование:

  1. файл ark_instToGeo.py надо положить в любую папку, откуда Maya читает скрипты (список можно получить MEL-командой “getenv PYTHONPATH;”);
  2. запустить python-команду:
  3. from ark_instToGeo import *; ark_instToGeo()
  4. выделить instancer‘ы, которые нужно сконвертировать и нажать Convert – будет произведена конвертация, удалены static channels и применен euler filter.

Опции:

Тип конверсии:

Start from Current Frameесли включено, вне зависимости от таймлайна или выставленного вручную диапазона фреймов, начнет конвертацию с текущего фрейма;

Playback/Custom Rangeв первом случае диапазон фреймов будет взят из таймлайна, во втором – можно ввести значения начального и конечного фрейма;

Convertзапуск конвертации;

Helpлинк на эту страницу.

Posted on December 18, 2016 at 17:22 by Ark · Permalink
In: FX · Tagged with: , , , , , , , ,

12 Responses

Subscribe to comments via RSS

  1. Written by grobbio
    on 9 January 2017 at 2:08
    Permalink

    Hi! Thank you very much for your utility. But it does seem to work only with the first (the 0) item on the instancer’ list. Is this limitation normal, by design, it’s a bug, it’s me?

    Here’s the example file that does this (maya 2016 sp2):
    https://www.dropbox.com/s/rbpq3oeybrzuj5h/instancer_example.mb?dl=0

  2. Written by Ark
    on 9 January 2017 at 14:41
    Permalink

    Hi. You’re using ‘cycle’ option to randomize objects – I’ve never used it this way and haven’t accounted for that, so, yep, that’s a limitation and I will add it in the next version. But you can always use the ‘usual’ method – set ‘cycle’ to ‘none’ in instancer, create per-particle attribute with random number and plug it into ‘Object Index’. Check this scene: http://www.sigillarium.com/blog/wp-content/uploads/FILES/instToGeo_example01.zip

  3. Written by grobbio
    on 9 January 2017 at 14:51
    Permalink

    Thank you very much for your great, fast answer and suggestion!

  4. Written by James Bond
    on 10 January 2017 at 17:44
    Permalink

    Awesome! Thanks 🙂

    Might help if it was possible to stop the conversion with ESC

  5. Written by Ark
    on 13 January 2017 at 1:56
    Permalink

    Yep, I’m looking into that 🙂

  6. Written by Daniel
    on 9 May 2017 at 6:04
    Permalink

    Hello Ark! just a quick question, does this works with maya 2017? Im trying to use it and my viewport freeze when I click on convert

  7. Written by Ark
    on 12 May 2017 at 13:17
    Permalink

    Hi Daniel. It works in 2017. In this version I’ve disabled viewport update, since it’s much-much faster this way – you should see progress bars moving though, that means everything is working. If not – send me your scene and I’ll check what is going on.

  8. Written by JC
    on 15 May 2017 at 1:47
    Permalink

    Hi Ark, I created a lot of meshes using the duplicate option and it works great but all the objects are hidden within its own group, is this working correctly?…I mean, do I have to unhide them all manuallly?
    Whats the purpose of the groups and the meshes to be hidden by default?
    I´m using Maya 2017 Update 3.
    Thank You very much 🙂

  9. Written by JC
    on 15 May 2017 at 1:51
    Permalink

    Don´t worry, I ungrouped everything, my fault…thank you so much for your good work 🙂

  10. Written by Aydar
    on 5 June 2017 at 14:11
    Permalink

    Arkady, thank you, works better than on the Sawa.

  11. Written by VP
    on 8 June 2017 at 14:49
    Permalink

    This script is amazing! Thank you!

  12. Written by hengki setiawan
    on 13 June 2017 at 5:26
    Permalink

    thanks for this script, the script its so cool 😀

Subscribe to comments via RSS

Leave a Reply