(python) simple mash network creation using python. Invalid Syntax

(python) simple mash network creation using python. Invalid Syntax

absoluteKelvin
Collaborator Collaborator
568 Views
1 Reply
Message 1 of 2

(python) simple mash network creation using python. Invalid Syntax

absoluteKelvin
Collaborator
Collaborator
import MASH.api as mapi
import maya.cmds as cmds

mashNetwork = mapi.Network()
mashNetwork.createNetwork(name= "CurveArray")
print mashNetwork.waiter

 

using maya 2023. its some simple code i started in python.  i just wish the error is more descriptive.

not sure what i did wrong. I know mel  but im a novice in python.

https://www.artstation.com/kelvintam
0 Likes
569 Views
1 Reply
Reply (1)
Message 2 of 2

absoluteKelvin
Collaborator
Collaborator

figured it out. It was something silly.

 

print(mashNetwork.waiter)

 Maya documentation for MASH python is outdated .  https://help.autodesk.com/cloudhelp/2023/ENU/Maya-Tech-Docs/MASH/MASH.html#basic-example-1 

https://www.artstation.com/kelvintam
0 Likes