Skip to content

Tag: guide

Season 01 – Episode 16 – Maya Attributes Primer, FKoverIK set up

Attributes Primer, FKoverIK

We provide a quick primer on Maya attributes and how to form compound attributes, which will be very important for our guide clean up process, and then show how to do an FKoverIK set up which we’ll use to simplify the guide.

A very simple script is used during the stream. As usual it’s provided in this post, and I will eventually add it to the GitHub repository.

All new episode now free of low frequency hum in the audio!
Enjoy,

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from maya.api import OpenMaya as om2
sel = om2.MGlobal.getActiveSelectionList()
mob = sel.getDependNode(0)
 
fn_cAttr = om2.MFnCompoundAttribute()
fn_mAttr = om2.MFnMessageAttribute()
 
c_attr = fn_cAttr.create("toSwap", "toSwap")
fn_cAttr.array = True
 
m_attr1 = fn_mAttr.create("originalConnection", "originalConnection")
m_attr2 = fn_mAttr.create("guidedConnection", "guidedConnection")
 
fn_cAttr.addChild(m_attr1)
fn_cAttr.addChild(m_attr2)
 
fn_dep = om2.MFnDependencyNode(mob)
fn_dep.addAttribute(c_attr)

Season 01 – Episode 11 – Component Live Guide

Component Live Guide

I have to admit this stream came out better than I expected. I quite like what it came to and the subject, Live Guide, is important to me.

The long story short about it is that we want to add guides to our components, but instead of the run-once or build approach we show how to create Live, dynamic Guide layers that can tweak a built component on the fly.

During the Stream, in a discussion about visualising simple data in Maya, I mentioned Cesar Saez’s work, You can find it here:
http://www.cesarsaez.me/2016/07/mscreen.html

On a related note: Someone else mentioned something and in context it sounded like it was a tool/plugin (MUIDrawManager). I only realised later, when I my brain was less crowded by talking about what I was doing, that they were referring to the Maya API object dealing with view draw. Nothing there that you won’t get from your Maya SDK Documentation.

Enjoy,