I am trying to query for the default expression used in the imagePlane with 
the following code:

# Part01
img = cmds.imagePlane()
frame_ext_attr = "{0}.useFrameExtension".format(img[0])
cmds.setAttr(frame_ext_attr, True)

# Part02
print '>>> ', cmds.listConnections("{0}.frameExtension".format(img[0]))

If I am running the above code block as a whole, the return result in 
`Part02` is `None`. 
However, if I run them in 2 parts, `Part02` will then be returning me 
`['expression1']` as the result.

Why are there 2 different results?

I have tried using some mel-based commands such as `refreshAE` or `updateAE 
<node path>`, in hope that the (whole) code block will be able to capture 
the expression in the first run, but it is not.

Any ideas?

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/21e1da6e-bf4c-4511-a98d-5651237d5068%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to