Friday, August 21, 2015
Our place is nice, it has an amazing view over a beautiful housed valley, with a backdrop of some amazing mountains, in which are some amazing trails to run on!
It really is so beautiful here. Within a 10 minute run we can be on the most amazing trails I've ever run on, with beautiful streams and forests to entertain while running or walking the dog.
We have some great neighbours and it is relatively easy for us to get to work. I drive sometimes, and other times I ride, when weather permits. It is a tiny commute for Kate to work at the moment which is nice. We have also ended up halfway between Welly City Centre and Lower Hutt. This is great as Lower Hutt has nice markets and food shops, whereas if you lived in the city you are stuck with supermarkets and higher food prices.
Work is amazing. It is so inspiring to be working somewhere challenging and with such amazing people. I am learning so much and can't believe it's already been 3 weeks of work. The next year is going to pass quickly!
Anyways, that's enough, but I'll finish with some pics from some recent walks around Ngaio. Enjoy!
Wednesday, August 5, 2015
Monday, August 3, 2015
Saturday, August 1, 2015
I built a command that searches the dependencyGraph for a given node type. You specify the node type to search for and the direction to search in. YOu then call it just as though it is another maya command. So rad as this can now be built into my code as if it were just part of maya.
So my command is: findConnectedNodeType. You call it like:
node = cmds.findConnectedNodeType('blendColors','up')
The return value is either False or the found node name. The command looks through the upstream dependencyGraph until the first instance of that node is found. It then stops the iteration and returns the node name.
Cool stuff I learnt.
To return from a MPxCommand you must use the public function of MPxCommand setResult.
self.setResult(return value goes here)
This comes at the end of the doIt() function.
Enumerators are also making a bit more sense now that I am using them more. For example I had to use MItDependencyGraph. You can specify the direction to search, up or down stream. The help docs show this for the direction.
MItDependencyGraph ( MObject & rootNode,
MPlug & rootPlug,
MIteratorType & infoObject,
Direction direction = kDownstream,
Traversal traversal = kDepthFirst,
Level level = kNodeLevel,
MStatus * ReturnStatus = NULL
So because this enumerator is a child of the class MItDependencyGraph , it must be specified in context of this class hierarchy. (OpenMaya.MItDependencyGraph). You can then set any number of the enum options that the help displays, in this case kDownstream or kUpstream and the class call will know to look for that enum if you set it (you don't have to specify anything and maya will use the default)
Ok. Hope that is a bit clearer than mud. Till next time.
Friday, July 31, 2015
Thursday, July 30, 2015
Test stretch node plugin using matrix connections rather than channel connections. This video compares two test plugins briefly. One plugin using Matrix connections, the other using Transform channel connections. This is a test purely to look at different types of data handling and how I can use Mayas API to simplify node graphs for common rigging techniques.