Maya Technical Art FAQ 05 Sep 08

September 5th, 2008

 A collection of commonly asked questions for Maya (mel and python)

Read the rest of this entry »

Useful string expressions (mel) 05 Sep 08

September 5th, 2008

Collection of useful string expressions for mel

Read the rest of this entry »

How do I key an attribute that’s constrained? 05 Sep 08

September 5th, 2008

This solution only realy applies to ‘constrained’ attributes and not expression or other forms of driven control.

[Download]

Read the rest of this entry »

Change layer visbility through script 05 Sep 08

September 5th, 2008

How to chage the layer visibility (or any other property) through Python script

Read the rest of this entry »

You’ve got Threads in my Mel! (Timer Event Objects in Maya) 27 Aug 08

August 27th, 2008

There’s been many times when I wanted to latch a command onto a  timer that runs independently of the main thread – still allowing control and interaction with maya while the timer is ticking.

The best example of this is an auto scene backup script.  Most, if not all, auto scene backup scripts out there latch onto some arbitrary events in the scriptJob command and execute the backup time check when these are triggered (selection change, tool change etc).

This typically does the job but can lead to some funny behavior depending on the events you’ve attached the backup to.

 


How could it be better?

In any other programming language that supports threads or even attaching timers to UI elements (ala maxScript) this would be very simple and is also simple enough problem inside a maya plugin – spawn a new thread, wait the given time then execute the command.

However I figured with Python’s implementation into Maya and it’s native ability for threading I should be able to achieve this without having to develop or distribute a compiled plugin.

 

It turns out it’s very simple.

Read the rest of this entry »

Sourcing a Python script through Mel 27 Aug 08

August 27th, 2008

So you want to do something python that’s not supported in Mel but are unsure how exactly to link the two.

Read the rest of this entry »

Nesting multiple command and procedure calls (mel) 15 Aug 08

August 15th, 2008

There are really three core ways to call a command or procedure in mel.  Most scripts use a combination of all three however of the two that will allow you to store the result there’s only one which supports nesting (embedded command or procedure calls in the arguments of another command/procedure).

Read the rest of this entry »

Renaming objects in Maya (advanced) 11 Aug 08

August 11th, 2008

 

[Download Script]

 

This is the third part to a three part tutorial on renaming objects in Maya.  In the first installment we established a collection of procedures and a simple UI that allows multiple objects to be renamed. In the second installment we evolved this tool to utilize an custom sorting method and improved the UI.

The previous system for sorting while functional limited our ability to do more sophisticated renaming. We’re going to address these issues and introduce a neat system for managing object lists:

  • Ultimately we want to support an extended set of rename options (Prefix, Suffix, Find & Replace, exclusions) along with the standard rename and numeric incrementation

Read the rest of this entry »

Renaming objects in Maya (intermediate) 01 Aug 08

August 1st, 2008

 

[Download Script]

 

This is the second part to a three part tutorial on renaming objects in Maya.  In the first installment we established a collection of procedures and a simple UI that allows multiple objects to be renamed.

Some issues were identified with the methods used previously and so in this next stage I’m going to evaluate the procedures and improve the script. Specifically this tutorial will address the following issues:

  • The previous script is a handy quick renamer but doesn’t always produce unique names for all objects
  • Numerical increments with good padding options
  • The UI was over simplified and could be improved with more options

Read the rest of this entry »

Renaming objects in Maya (beginner) 31 Jul 08

July 31st, 2008

 

[Download Script]

 

If you’ve ever done any scripting in Maya or even tried to clean up you scene a bit I’m sure you’ve run into some of Maya’s quirks with how it handles object names. Specifically it gets real tricky when dealing with nodes that share duplicated names and renaming whole chains of nodes.

To help demystify what’s going on I thought I’d run through the development of a ‘rename’ tool that will cover ways I’ve found to resolve these issues.

 

Read the rest of this entry »

Search Articles

external links

Project Offset

 

Wikipedia Affiliate Button