As my Python modules grew in number and complexity I found myself wanting code autocomplete. I also wanted the predefined completion (pypredef) files to be generated automatically. Here’s what I did. I started by creating a function that converts a string into an imported module. The string would be the...

Read more

Code Thumbnail

Eclipse Port

Like most who use Python with Maya my primary IDE is Eclipse. There are plenty of other sites that have step-by-step tutorials for setting up Eclipse to work with Maya. So I won’t be covering that. Instead I have a tip for automatically opening a port to the IDE...

Read more

Getting Children

Here’s a little utility function for getting all the children across all branches of an object’s hierarchy. [crayon-5f91f5e8c53bf223503580/] We start by getting the MDagPath of the passed in object name and use it to construct an instance of  the MFnDagNode function set. The dag path has a public function called...

Read more

1 3 4 5 6 7 9