Sunday, November 15, 2015

get file path in shell using hot key

In the previous post, I wrote about a small shell script I created to copy current working directory (pwd) to clipboard. I have made few modifications to it and now you can select the file name and will get the full path of the file along with the name of the file

bind '"\eOS":"echo -n $(pwd)/$(xclip -o) | xclip -selection clipboard \n"'

Bash is awesome! Automating stuff is so fun!!

Saturday, November 14, 2015

NatronRenderer override output path

We have been heavily using natron at work for all our compositing needs. It is very powerful and growing at an amazing pace.

While trying to do a network render on cgru I wanted to override the output path set in the write node. The help on the NatronRenderer is not clear enough, here is some explanation on it.

Create and setup your whole network in the regular way. After the final write node add a "output" node. 

Output node won't have any properties. This will take the properties from the previous write node and pass it on to the NatronRenderer for modifications in the cli.

While rendering from cgru or command line you can specify. -o /path/to/the/override/folder/test.###.png. For multiple write nodes, You can connect multiple output nodes and specify them with -o1 and -o2

So, the final command will be like this...

/path/to/NatronRenderer -o /path/to/the/override/folder/test.###.jpg startFrame-endFrame /path/to/the/file.ntp

Enjoy natron network rendering.

Friday, November 13, 2015

Why Linux Certification

Just after posting about the Linux certification on my blog I realized that some people might think why did I went for the certification. In fact, few of my technology friends asked whether I am planning to become a full time system administrator.

The answer is a No. That would be last of my options. The real reason is, I like Linux. I have been using it full time for the past 5 years and am sure I would be using in the future also, in one form or the other. Right now I am using centos both at work and on my home pc. I just installed it and started exploring and learnt on my own. This way I got a decent knowledge of the operating system and command line usage. But I always don't know certain simple stuff like how do I connect my pendrive, how do I install packages (confidently, with out fear of breaking things) and I wanted to know how to set up basic web server and file sharing servers.

I can learn all these stuff by just googling around and on top of that I hate sitting in the class other than me exploring and learning on my own. But, I went for it because I will get to know people who are experts in that area. I will have access to the lab. I can experiment with things and learn with out the fear of losing the data on the machine. That's one reason I got a raspberry pi but never got the chance to use it properly and gave it to my nephew.

It was a very good experience and learned a ton of stuff. RHCSA is a bit repetition of the stuff i already knew but I would recommend if for people who are new to linux, even if you are not planning to become a system administrator. But RHCE is full of juicy stuff like nfs, yum and Apache server set ups. I learned a lot of new stuff and got exposed to technologies which I wouldn't have used otherwise.

I can't share much about the exam but I will try to give a general overview. All Red hat exams are fully practical. There are no multiple choice questions. You will be given preconfigured virtual machine and you are expected to achieve a list of tasks. So, Don't just learn. Practice, practice, practice. During the exam, attempt the toughest problems first. If you are not able to get it working or have few errors you can always reset the vms and start from the beginning. They are very time constrained, Manage it efficiently. Good Luck!

Thursday, November 12, 2015

My linux story

I am happy to share that my journey with linux has been puplished as part of "My Linux Story" series on by Red Hat.

You can read the article at or if you are a medium lover like me.

I would love to hear your comments on it.

Wednesday, November 11, 2015

Red Hat Certification

Its been long I have updated the blog. I was busy with lot of stuff.

If you have been to this place before, you know that I am a huge open source enthusiast. I do all my personal works on open source software and linux.

I have been using Linux for past few years and really like it. It has a special place in my heart. Past few months I was busy preparing for my Red Hat certification exams.

I am ecstatic that I cleared both Red Hat Certified Systems administrator and Red Hat Certified Engineer exams. It's actually a very good feeling to pass the exam, what ever it is :P

You can check my Red Hat Certification profile here.

Usually both the exams will be done on the same day back to back. But this time they gave the opportunity to write a week apart. I thought having a gap of once week helps for preparation but that turned out to be a big issue. I wrote the first one on August 14 and cleared it. Next day, I met with an accident and fractured both my wrists (Even I don't know how I managed to break both :P) and was bed ridden for almost two months. I attempted the second exam 2 months later and passed it.

So, All these days I was busy with work, certification and recovering from the injuries. Now that am completely recovered, will try to keep this place more updated.

Wednesday, June 17, 2015

Maya: Restore busy cursor

A small annoying thing with maya, especially with arnold renderer is that if you start a render and cancel, the cursor won't come back to its normal stage from the busy mode. It keep showing the spinning wheel or what ever the display settings are set to.

It is hard to work with that cursor. This two lines of code should fix that issue.

import PySide

Wednesday, June 3, 2015

Saturday, May 16, 2015

study # 16


My last attempt at painting a human is horrible. Faces are my weakness. Need to do more of those.

study # 15

Here is the one image which I thought I will never be able to finish but somehow managed to.
Though I haven't achieved 100 percent likeness, I'm happy that I was able to finish it off in a decent shape. While starting I dreaded with the no of elements and the different types of surfaces in the image but soon it became by favorite study. I had lot of fun painting this and learned a ton.

And here is the original image.
I found it on pinterest and forgot to keep the source link. 
Google image search didn't help to trace the source. 
Thanks to the anonymous photographer.

Completely done in mypaint, except for the bar codes, which are photo bashed in krita.
Here is the gif of the process for fun.

Any c&c is always welcome.

Friday, May 15, 2015

study # 14

As usual done in mypaint. Here is the original image.
This is one of the images clicked by aisha yusaf.
Some of the best food photography i have seen in a while.
Do check out her work.

I have been exploring imagemagick and its python module for some implementation at work.
Just for fun created a gif of the process using it. 

Let me know if you have any comments or suggestions for improvements.

Monday, May 11, 2015

study # 12

Did this over the weekend, an hour here and half an hour there but spent a bit more time than usual. The front wood texture didn't came out well at all. Lot to improve on this one... but moving on to the next...

Done in mypaint on centos 7 and here is the original image.

Tuesday, May 5, 2015

study # 11

I was searching for some robot concepts for a project and found this simple wooden guy in the DYI section of pinterest. I wanted to do a wodden one, but later some day. For now a study. Done in mypaint and here is the original image.

Pycon India 2015: Call for proposals

Pycon is happening this year on october 3&4 at Banglore. Am excited to attend it.
Here is the poster I designed to help the pycon team to spread the word on Call for Proposals

Friday, May 1, 2015

Study # 10

Well a study again. Painted in mypaint and did a bit of cc and contrast in krita. Painting the subsurface and the texture on the snail body is a bit of work.Spend more than 4 hours on this guy. Here is the reference image.

Friday, March 27, 2015

Linux: search history by up/down arrow keys

In shell, if you want to access the last used commands you can use the up and down arrow keys.
But, if you want to search through the history you have to use the 'Page Up' and 'Page Down' keys. I find it very annoying to use two different set of keys which almost does the same purpose.

How to fix it ? Go to ~/.bashrc and stick these two lines...

bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'

Now you can go through the history sequentially using the up and down arrow keys and
if you type in a letter and press up/down arrow you will search the history for the commands starting with that letter you typed in. Have fun!

Thursday, March 26, 2015

Study # 8

Here is the link to the original photograph. Like how the light is playing around on this simple toy.
Spend 3 hours on this guy. Done in Mypaint 1.1.1-alpha on centos 7.

I recently compiled the latest version of mypaint from git on centos 7.
It is fantastic. Got some amazing new features.
Will explain the compilation process and the new feature in the next post.

Monday, March 23, 2015

back to studies # 7

Its been long i did any studies.
As usual, used mypaint, no color picking and grid. Try to get as much as i can visually. Spend roughly 2 hours.

Wednesday, March 4, 2015

Copy current working directory in shell using hotkey.

In Linux we constantly deal with file paths and moving stuff around in shell. One thing that I've always wished is to have a shortcut key for copying the current working directory. Traditionally I will be doing this...

> pwd
> returns/the/current/working/dir

Leave keyboard, double click the path to copy it using mouse then back to keyboard and move to another tab and paste it with ctrl+shift+v and resume with the work.

Because I do this all the time and will also be helpful for fellow artists at work I wrote a small shell script and stick it in my bash.

bind '"\eOR":"echo -n $(pwd) | xclip -selection clipboard \n"'

With this, I just press F3 and it copies the current working directory to clipboard and I move to the next tab and past it with out moving my hand from the keyboard. Yeah!!


For centos you need to install xclip. Run Sudo yum install xclip

Copy the bind command above to your ~/.bashrc. My shortcut key is currently configured to function key F3. You can configure yours by replacing the OR with the escape code for the respective key combination you want.

Hope its of some help.

Tuesday, February 24, 2015

setting up wifi on raspberry pi

Its fun to work on Linux but it would also be a frustrating experience if you make some wrong choices. Last time when am on Linux mint, I wanted to set-up wifi on my desktop. So, blindly went to a local store and got  netgear wna 2100 with out doing much research on the net about the driver compatibility and I paid the price. I had literally spent a week trying out different approaches to get it recognized, but in vain. I tried the last option of using the windows drivers for linux using ndiswrapper but couldn't.

So, this time I did a lot of search on the forums and found that  edimax EW-7811Un wifi dongle has the maximum support for rpi and Linux in general. The setup is straight forward... if you have updated your Linux recently you don't need to download or compile anything. Check this page for quick setup guide.

Here is the pi with WiFi dongle on my desk... :)

Ok, once you have configured wifi you need to know the ip to ssh into it.
On centos you can install a small nifty tool called nmap.

$  sudo yum install nmap.

then run

$  npm -sP

This will return a list of all the devices on the network.
Now you can test out a few of the ips by trying to ssh pi@ipaddress and find out the ip of pi. 

If you don't want to do the witch hunt every time you connect pi to the network you can setup a static ip and use that every time. Check this tutorial on how to set it up. Its pretty simple and straight forward.

Using the same process I have set up multiple networks for both the ones at office and home and just plug it into the power source and ssh from my pc.

Friday, February 13, 2015

Mari Sublime

Sublime is my choice of IDE. Its a breeze to work with sublime. I have written a sublime plugin to easy out code execution for mari.

Get Sublime:

Though sublime is commercial you can grab an unlimited trial version from here.
It just requests you to buy license one in a while but not at the level to irritate you. The installation is straight forward.

Download Mari - Sublime:

You can download mari Sublime over here... mari-sublime

Install Mari-Sublime:

Extract the archive.
In sublime go to preferences > Browse packages.
Place the extracted folder in the sublime packages folder.

Enable command port in Mari:

To execute the scripts inside mari you need to enable the command port.
You can use this script to toggle command port. not ( )

If you enable command port you will see a plug icon in the bottom right corner.


Select a code snippet and press ctrl + m. Only the selected code will be executed in mari. To execute the whole file deselect everything and simply press ctrl + m.

Happy coding !

Thursday, February 12, 2015

Hyderabad Blender User Group Meetup

I recently conducted the blender user group meet up in Hyderabad. This is the first of the sessions to happen in Hyderabad.

Hyderabad has a good blender user strength. I have lot of friends who are dedicated blender users and there are couple of friends who went ahead and made blender the main tool for their studio.

It's always difficult to conduct the first session. You don't know the kind of people who comes and their level of expertise. Roughly 25 people turned up out of the 60 registered. Most of them are new to blender and cg as well. l took this session as a chance to explain people what blender is and what kind of stuff it can do, its strengths and the feature set it got.

Sravan nunna explained how he made the intro video for the meetup.

I started teaching blender at our studio and he picked it up pretty quickly, in a matter of few days not only he did the complete animation in blender but also modeling, shading, lighting and layout. I helped him a bit with the modeling and shading bit i was truly amazed at the pace he picked up blender for a guy who is doing just animation that too in proprietary software like Maya and voodoo.

He really liked blender and was really impressed by the animation toolset it has got. I would say, its a huge thing to come from an animator who is used to voodoo which is said to be an animation production beast.

And he did an amazing logo for the group.

From the people I met over there I see most of them are interested in gaming and want to have a hands on experience of doing things instead of lectures.

Yeah, why would any one wants to go to a lecture session when they can log into YouTube and watch hours of video tutorials. So for the next meet up we are planning for a practical session on modeling a game character in blender.

Wednesday, February 11, 2015

Mari Tools: send to mari

This is a small tool which will help you to send the selected images in you file explorer to the current opened projects in mari. Its the right click > "open with" tool which all the softwares have and is missing for mari.

Download the zip file and follow the steps for installing.

1. Install the
Place the script in your Scripts directory, which will be in the same path as your mari logs directory. Make sure the file is executable.

1. Install

Copy the file to the Same Scripts director mentioned above. Restart mari. You can toggle command port through "Python > Toggle command port".
If the command port is enabled you will see a plug icon in the bottom left area.

3. Modify Right click menu:
Finally we are going to modifying the right click menu of the file explorer.

In Linux the file manager of choice is Konqueror. You can use the similar approach in other browser like dolphin. In kde you have to create a .desktop file. I won't go into explaining the whole procedure. You can refer the tutorial here...

In the .desktop file modify the last line Exec= with the path to the file and copy the .desktop file to '/usr/share/services/ServiceMenus/'. The path might not be exactly the same as it depends up on your Linux distribution.  

Now.... reopen konqueror.
Select a bunch of images and right click and choose Send to Mari. The selected images will be added to the image manager in current mari session.

Gotchas... make sure you have a project open before sending the image and command port is enabled in mari.

Tuesday, February 10, 2015

Dusting off wacom

Dusting off the Wacom and kick starting some painting practice again.... Here are some random stuff am doing in mypaint

Sunday, February 8, 2015

Maya: Preserve shader name after changing the type

One of the stupid things maya does is, if you change the shader type, it will reset the shader name to a new default names. Its very annoying to work if you have a ton of shaders which you received from outside freelancers where they used lambert/blin instead of the intended arnold aiStandard.

Here is a neat way to overide the maya default way by Seith. Keep Maya from renaming your shaders. Autodesk please make this the default in future versions...

Saturday, February 7, 2015

Mari Extension Pack 2.0

I have been hosting my mari scripts at github and sharing them on mari idea scale. Jens kafitz who is maintaining the ideascale has come up with Mari Extension Pack, a set of opensource tools and shaders. I am happy that some of my tools were included in the version 2.0 and used by the mari community. Looking forward to contributing more.

And the hardware hacking begins...

Well its been a month I got my hands on raspberry pi b+ model. I got it odered from amazon and along with it got a clearcase

I didn't got the time to do anything with it as I was crazy busy with production work at office. Finally managed to pull out some time this weekend to actually install raspbian and try out some stuff. The documentation on the site is good enough to start out with, I skipped "noobs" and directly went with "Raspbian".

Here is my pi sitting on top of the network switch at office powered by my 2amps one plus one mobile charger. I connected it to the network using the ethernet cable and sshed into it and accessed it from my workstation. I have to get a wifi dongle and set it up so that i can keep it at my desk instead of leaving it alone next to the server :P.

Here is a list of projects I want to do with it...

Study Linux:
I want to explore Linux more. Been using Linux for some time but haven't got the chance to do crazy experimentations with it. At office you wont' have accesses to lot of things and with my personal computer lts pain to mess with it as it will effect the regular work and am afraid to loose data. So, pi will be the best do some experimentations.

Retro Pi:
Wanna building a retro gaming console. I used to play ton of games in my childhood. My father had a gaming arcade, where you get 3 lives for one rupee coin. so you can imagine, unlimited Lives :D. Want to use pi to setup a retro gaming console.

Web Hosting:
Here is the plan: set up a static local ip for the pi. Setup dynamic dns and access it from outside the network. Later setup a node.js server and host my personal website on it.

Face Recognition:
A face recognition system for office attendance. This is a serious project am looking into as an alternative solution for the biometric swipe.

So, on to messing with Linux....

Monday, January 5, 2015

new year gift

Its a nice start for the new year. Got credit in seventh son as matchmover.

Its been almost a year I have updated the blog.
Will try to keep the blog updated in the new year.. :)