cmds.polySplit crashing maya aaaahh

46 views
Skip to first unread message

e955...@gmail.com

unread,
Mar 1, 2015, 11:10:40 AM3/1/15
to python_in...@googlegroups.com
hi all,

im added a polysplit command to my code:

'cmds.polySplit(ip=[(563, 0.25),(0,0)])'

when i run my code it crashes because of this line. However if i comment out this line and then run it seperately afterwards, the command works fine. Really weird.

if anyone knows why this might be happening or if anyone knows an alternate way of spitting a polygon in python, please could you let me know,

thanks so much,
Sam

e955...@gmail.com

unread,
Mar 2, 2015, 3:30:40 PM3/2/15
to python_in...@googlegroups.com, e955...@gmail.com
its ok i figured it. I needed to put a cmds.select command to select the specific piece of geometry first. Its weird you can't specify that in the polySplit command, but anyway...

Kurian O.S

unread,
Mar 2, 2015, 3:39:11 PM3/2/15
to python_in...@googlegroups.com, e955...@gmail.com
If you pass the geo name then it should work eg:

surfaceNode, creatorNode = cmds.polyCreateFacet( p=[(0, 2, 0), (0, -2, 0), (4, -2, 0), (4, 2, 0)] )
#just make sure we clear current selection
cmds.select(cl=True)
cmds.polySplit(surfaceNode, ip=[(2, 0.1), (3, 0.5), (0, 2, -1, 0.0), (0, 0.9)] )



On Mon, Mar 2, 2015 at 12:30 PM, <e955...@gmail.com> wrote:
its ok i figured it. I needed to put a cmds.select command to select the specific piece of geometry first. Its weird you can't specify that in the polySplit command, but anyway...

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/18c57141-2dba-4077-a926-be04dc3e377f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
--:: Kurian ::--
Reply all
Reply to author
Forward
0 new messages