Convert Instancer to Geometry #2
Type: Maya Python Script (py) Name: ark_instToGeo Version: 2.0 Released: 2016.12.17 Download (Save as...)
Updated my old utility that converts instancer into geometry – it’s much faster and stable now, works with all rotation types (rotation and aim), has progress bars and prints final statistics into script editor.
Usage:
- put ark_instToGeo.py into any Maya scripts folder (get the list with “getenv PYTHONPATH;” MEL-command);
- execute python-command:
- select instancer(s) and press Convert button to make conversion (static channels will be deleted and euler filter applied to the result).
from ark_instToGeo import *; ark_instToGeo()
Options:
Conversion Type:
- Duplicate – objects will be created as independent duplicates;
- Hybrid – objects will be created as duplicates, but with their shape driven by the original object (outMesh->inMesh connection, can be broken manually to make the duplicate independent from the original object);
- Instance – objects will be created as instances (slower than other methods);
Start from Current Frame – if enabled, no matter what playback range is set to and whether custom range is enabled or not, conversion will start from the current frame;
Playback/Custom Range – in the first case conversion framerange will be taken from playback range, in the second one – you can enter custom start/end frames;
Convert – runs the conversion;
Help – link to this page.
Posted on December 18, 2016 at 17:22 by · Permalink
In: FX · Tagged with: ark_instToGeo, instancer, maya, particles, python, sag_instancerToGeometry, script, tool, utility
In: FX · Tagged with: ark_instToGeo, instancer, maya, particles, python, sag_instancerToGeometry, script, tool, utility
on 25 January 2024 at 20:03
Permalink
Hi, any update on compatibility with Maya ’24? I would really like to utilize this script for a client project.
Thanks!
on 26 January 2024 at 5:12
Permalink
It does.
on 26 January 2024 at 5:13
Permalink
Fixed it, download again.
on 6 February 2024 at 18:26
Permalink
Ok awesome! I’ll give it a try, thanks!
on 8 February 2024 at 15:32
Permalink
Hi Ark,
The script did run, but when it completed it crashed Maya. Luckily the recovery worked, and I was able to open up the recovered scene and the instanced geo was all there, which is great. However, I’m not sure what would cause the crash, so just fyi.
Regardless, thanks for the great script!