[MASH] - Assigning Objects to the Repro Node with Python

[MASH] - Assigning Objects to the Repro Node with Python

sublist
Advocate Advocate
1,233 Views
2 Replies
Message 1 of 3

[MASH] - Assigning Objects to the Repro Node with Python

sublist
Advocate
Advocate

Hi.

 

I want to assign an object the the mash repo node via python.

Is there are simple way to do this?

 

thxs

Guido

0 Likes
Accepted solutions (1)
1,234 Views
2 Replies
Replies (2)
Message 2 of 3

lanh.hong
Alumni
Alumni
Accepted solution

Hi sublist,

 

You can do something like this:

import mash_repro_utils as repro
import mash_repro_aetemplate as AErepro

repro.connect_mesh_group('MASH1_Repro', 'pSphere1') # Add the sphere to repro node
AErepro.refresh_all_aetemplates() # Refresh the attribute editor for all repro nodes

You can find mash_repro_utils and mash_repro_aetemplate methods in /Applications/Autodesk/maya2019/plug-ins/MASH/scripts. That folder also contain other scripts that might be helpful.

 

Regards,

Lanh

 

 


Lanh Hong
Developer Technical Services
Autodesk Developer Network



Message 3 of 3

sublist
Advocate
Advocate

Thxs for the Info. 🙂

0 Likes