Posts

Showing posts with the label Python

Expressions in JSE!

Image
A milestone in creating expressions in my own maya script editor, along with previous features of splitting and deleting panes. Oh yeah and it will transfer your current scripting tabs over to the script editor. In other news on coding this, I've been looking into the logging library and creating debug messages using those, which I found pretty funky as I can turn them on or off by setting the severity limit.

Joe's script editor, initial look and dev

Image
Continuation of pursuit for a more powerful and functional script editor from the university specialist project last year, I present the first look at JSE, or Joe's Script Editor. Yeah the name was definitely super cool, yeah. I have a lot of features lined up, including ideas from improving the script editor specialist project in the 2nd university year of study, including: Split panes (initial proof of concept complete) Opening and saving script behaviour just like in a normal text editor Re-written code execution procedures to overload the default one Vim style command line to do things New right click menus Integration with the existing scrip editor's preferences Some cool help to go with using it This is a personal project at the moment but I may consider it for the innovations project during this final university year. When I complete it to a good enough of a standard, I am thinking of proposing this to Autodesk as a candidate for replacing their existing ...

More scripts! Move and rotate camera to face a face

Image
It's an impaled camera!! Sometimes when I UV, I really wished there is an option to move the camera so it is perpendicularly pointing at the face I'm unwrapping, while centred at the face's centre. This will help when UV planar project from the axis does not yield and fiddling around trying to get the camera perfect sucks. Unfortunately there don't seem to be there by default, so after a day of planning and scripting, here it is! Have to revert to A Level maths mechanics about the centre of mass of a lamina and a spreadsheet to plan and check the values before I started scripting, but it's done! All you have to do is: Select a face Edit 1 word of the script to the name of the camera you want to move Run the whole script Few flaws though: You will have to dolly out to view the face  The viewFit command (hotkey f) sometimes messes up the face centring I haven't got around to implementing something that translates the camera's loca...