rad = maya.cmds.polyCube (width=2.0, height=4.0);How do you query something that was created, simply such as this;rad = maya.cmds.polyCube (width=2.0, height=4.0);
--
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/18340d09-5368-4549-b423-afbedbe3ae32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Thu, May 19, 2016 at 1:09 PM Christopher. <crestchr...@gmail.com> wrote:How do you query something that was created, simply such as this;rad = maya.cmds.polyCube (width=2.0, height=4.0);The return value from that command is a list:[<TransformName>, <ShapeName>]So you might have gotten back something like:[u'pCube1', u'polyCube1']You can use the transform, the shape, or the list as the input to the polyCube command, in query mode:cmds.polyCube(rad, q=True, height=True)# 4.0Justin
--
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_maya+unsub...@googlegroups.com.
Ah, so my original method wasn't too far off, good to know :) Thanks.All my other python issues in the past got resolved as well recently.
On Wednesday, May 18, 2016 at 9:16:48 PM UTC-4, Justin Israel wrote:
On Thu, May 19, 2016 at 1:09 PM Christopher. <crestchr...@gmail.com> wrote:How do you query something that was created, simply such as this;rad = maya.cmds.polyCube (width=2.0, height=4.0);The return value from that command is a list:[<TransformName>, <ShapeName>]So you might have gotten back something like:[u'pCube1', u'polyCube1']You can use the transform, the shape, or the list as the input to the polyCube command, in query mode:cmds.polyCube(rad, q=True, height=True)# 4.0Justin
--
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/18340d09-5368-4549-b423-afbedbe3ae32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/5e7a0959-0c95-4e2e-9545-68edaa05b0f5%40googlegroups.com.
Awesome! Glad you got it working!
On Thu, May 19, 2016 at 2:21 PM Christopher.
<crestchr...@gmail.com <mailto:crestchr...@gmail.com>> wrote:
Ah, so my original method wasn't too far off, good to know :) Thanks.
All my other python issues in the past got resolved as well recently.
On Wednesday, May 18, 2016 at 9:16:48 PM UTC-4, Justin Israel wrote:
On Thu, May 19, 2016 at 1:09 PM Christopher.
<crestchr...@gmail.com> wrote:
How do you query something that was created, simply such
&nb sp; as this;
||
rad =maya.cmds.polyCube (width=2.0,height=4.0);
The return value from that command is a list:
[<TransformName>, <ShapeName>]
So you might have gotten back something like:
[u'pCube1', u'polyCube1']
You can use the transform, the shape, or the list as the input
to the polyCube command, in query mode:
cmds.polyCube(rad, q=True, height=True)
# 4.0
Justin
--
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
& nbsp; https://groups.google.com/d/msgid/python_inside_maya/18340d09-5368-4549-b423-afbedbe3ae32%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/18340d09-5368-4549-b423-afbedbe3ae32%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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
<mailto:python_inside_m...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/5e7a0959-0c95-4e2e-9545-68edaa05b0f5%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/5e7a0959-0c95-4e2e-9545-68edaa05b0f5%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/python_inside_maya/7Z3uvv0fCU0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
python_inside_m...@googlegroups.com
<mailto:python_inside_m...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1sy BAZYeP-h3hbdW5RktgWBw%3D91v0QZmNBiKbS9Jz20A%40mail.gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1syBAZYeP-h3hbdW5RktgWBw%3D91v0QZmNBiKbS9Jz20A%40mail.gmail.com?utm_medium=email&utm_source=footer>.