Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I'm very new to scripting in Maya but I was trying to change attributes on a Toon outline via a python script. I was able to do this successfully for most areas I needed to, but when it came to Intersection Lines and changing the colour I am a bit stuck. I've tried a few ways of writing line 5 but to no avail:
thisSelection = cmds.ls(selection = True)
selectedMesh = thisSelection[0]
#other cmds.setAttr...,
cmds.setAttr(selectedMesh + ".intersectionColor", Double3(1, 0, 0.0353)),
The line I am trying to convert from Mel is:
setAttr "pfxToonShape1.intersectionColor" -type double3 1 0 0.0353 ;
I tried mel2py but got an error about lineno for this particular line of Mel. Any help would be greatly appreciated, thank you 🙂
Solved! Go to Solution.