What is Labs ?
Labs is place were I put my experiments, work in progress, stock media and materials relating to my personal projects.Categories
Archives
Category Archives: Code
Toms Tools 1.2 Beta.
This is an updated collection of tools that I have made and pulled together into a single location in Maya. New Features: NAN Perspective Fix. import maya.cmds as cmds import maya.mel as mel #New Scene with No Dialogue Tool function … Continue reading
Posted in Code, Update
Leave a comment
Fix for NAN persp cam!
For those who are looking for a fix for Maya perspective camera nan Type this mel code in the script editor! select -r persp; ResetTransformations; GoToDefaultView; Below is the python version code. [UNTESTED!] import maya.cmds as cmds import maya.mel as … Continue reading
Posted in Code
Leave a comment
Tom’s Tools 1.0.
This is a collection of tools that I have made and pulled together into a single location in Maya. Features: New Scene No Dialogue Tool. Center Asset Tool. Capping Tool. Select Cap Tool. import maya.cmds as cmds #New Scene … Continue reading
Posted in Code, Pipelines, Update
Leave a comment
Capping tool for Maya.
Its that time again. While working on some models this week I found that I was doing a lot of capping of pipes. So rather than doing this manually I made a tool that does this for me. So here … Continue reading
Posted in Code, Experiments, Models
Leave a comment
Centre Pivot Tool.
Hi Guys, In Maya I was wanting to centre a pivot point to an object. Then move the object to the centre of the world. Unfortunately Maya does not have a one click button for this. Fortunately for all of … Continue reading
Posted in Code, Uncategorized
1 Comment
Python Rewrite.
Hi All, As an exercise I thought I would see if I could rewrite the code below from this tutorial http://www.sthurlow.com/python/lesson11/. def menu(list, question): for entry in list: print 1 + list.index(entry), print “) ” + entry return input(question) – 1 # running … Continue reading
Posted in Code, Experiments
Leave a comment
Modules in python.
Hi All, I have just made a neat little Module in Python and I thought I would share this too. This Module tests a number to see if it is an odd number or a even number. Importing the Odd Even Module code below. … Continue reading
Posted in Code, Experiments
Leave a comment
Python Check Boxes
Hi All, I am still brushing up on Python and thought I would share another example of some code I have created. This code creates a cube but only if you check the check box in the User Interface. Hope this … Continue reading
Posted in Code, Experiments
1 Comment
Python and Mel
Hi All, I have been busy re learning Python and Mel in Maya. Below, is a script which makes a material in Maya that has a texture applied to it. import maya.cmds as cmds #create a counter and set it to zero i = 0 … Continue reading
Posted in Code
3 Comments