how to select all circles in a scene

88 views
Skip to first unread message

e955...@gmail.com

unread,
Oct 17, 2014, 6:00:28 PM10/17/14
to python_in...@googlegroups.com
Hey yo,

you know this command lists all objects of type nurbsCurve in a scene:

selection=cmds.ls(type='nurbsCurve')

does anyone know how to select specifically all nurbs circles in a scene? I dont know what type a nurbs circle is. does anyone know?

thanks alot,
Sam

Colas Fiszman

unread,
Oct 17, 2014, 6:28:37 PM10/17/14
to python_in...@googlegroups.com
Hi Sam,
There is no easy way to select all the nurbs circles in a scenes as they are normal nurbsCurve.
You can do if you didn't rename them
import maya.cmds as cmds
cmds.select(cmds.ls("nurbsCircle*", type="nurbsCurve"))
Greets,
Colas



--
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/518d0f64-8d55-4e4b-bb2f-508fda19755e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

e955...@gmail.com

unread,
Oct 17, 2014, 6:47:41 PM10/17/14
to python_in...@googlegroups.com
awesome, that should do it, thanks!
Reply all
Reply to author
Forward
0 new messages