[Maya-Python] Re: Basic question about pyMel

2015-03-24 Thread Robert White
Nope this wouldn't work: pm.ls(type='camera')[0].pm.getParent().pm.getTranslation().z Instead you'd need: pm.ls(type='camera')[0].getParent()..getTranslation().z Its only the initial function that gets prefixed with the module namespace. On Monday, March 23, 2015 at 12:59:00 PM UTC-5, Simon

Re: [Maya-Python] Re: Basic question about pyMel

2015-03-25 Thread Jesse Kretschmer
There have been some great explanations here already, but I felt like chiming in still. The line of code in your example is a bunch of methods chained together (method chaining ). Each returns a new object and then you call a method on that object. It is