Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# Copyright(c) 2018 Asit Dhal.
# Distributed under the MIT License (http://opensource.org/licenses/MIT)
#
LIGHT_BLUE='\033[1;34m'
RED='\033[0;31m'
NC='\033[0m' # No Color
INTERACTIVE=""
@cg-cnu
cg-cnu / github_issue_count.graphql
Created September 1, 2017 10:08
query issue count
query {
repository( name: "bundlesize", owner: "siddharthkp") {
issues {
totalCount
}
}
}
@cg-cnu
cg-cnu / multiLayerPatchCopy.py
Last active April 9, 2017 20:38
copy multiple layers and patches in one go
# ------------------------------------------------------------------------------
# Multi Layer-Patch Copy
# ------------------------------------------------------------------------------
# Define Udim mapping
# Specify the source patch from which paint data is copied from - to the target
# patch to wich data is copied.
#
# eg: source patch : target patch / source patch : target patch
#
# eg: 1:2 / 3 : 4 (read - Udim 1001 is copied to Udim 1002 and
@cg-cnu
cg-cnu / retopologyWorkflow.py
Created December 17, 2013 15:35
automate the retopo workflow
'''
Automates the workflow in the tutorial below...
http://cgcookie.com/blender/2011/08/08/retopology-with-the-bsurfaces-add-on/
make the lidar active and in 3d view press space and type retopo workflow.
Creates the setup for the active / last selected object.
'''
bl_info = {
"name": "Retopo Workflow",
"description": " setup and automate the retopo workflow ",
@cg-cnu
cg-cnu / wireframeOnShaded.py
Created December 17, 2013 15:34
toggle the visibility of wire frame on shades in blender
# Wireframe on shaded
# Toggle the display of wireframe on the objects visible in the viewport
bl_info = {
"name": "Wireframe on shaded",
"description": " Toggle wireframe on shaded with shift + W ",
"author": "Sreenivas Alapati",
"version": (1, 0),
"blender": (2, 65, 0),
"category": "3D View"}
@cg-cnu
cg-cnu / toggleLayerVisibilityLock.py
Created December 17, 2013 15:11
toggles the visibility and lock of the selected and unselected layers
# ------------------------------------------------------------------------------
# Toggle layer visibility and lock
# ------------------------------------------------------------------------------
# ctrl + shift + V - Toggles the visibility of selected layers
# alt + shift + V - Toggles the visibility of Unselected layers
# ctrl + shift + L - Toggles the lock status of selected layers
# alt + shift + L - Toggles the lock status of unselected layers
#
# copy the script to the same location as your log folder in
# windows: C:\Users\[user_name]\Documents\Mari\Scripts
@cg-cnu
cg-cnu / patchBake.py
Last active December 31, 2015 15:19
Bakes the current selected patches for the whole object to image manager
# ------------------------------------------------------------------------------
# Patch Bake
# ------------------------------------------------------------------------------
# Bakes the selected patches to images manager.
# Works the same as patches > extract selected but for the whole channel
# and on all the selected patches.
#
# copy the script to the same location as your log folder in
# windows: C:\Users\[user_name]\Documents\Mari\Scripts
# linux: /home/[user_name]/Mari/Scripts
@cg-cnu
cg-cnu / mergeDuplicateLayers.py
Last active December 31, 2015 15:19
creates a merge duplicate of the selected layers.
# ------------------------------------------------------------------------------
# Merge Duplicate Layers
# ------------------------------------------------------------------------------
# creates a merge duplicate of selected layers.
# Same as Command+Shift+E / Ctrl+Shift+E in photoshop.
# Will merge for selected patches, other wise will merge for all the patches.
# Will rename the merged layer to the current active layer name + _mrgDup.
# ** rename will work from mari 2.5 onwards**
#
# copy the script to the same location as your log folder in
@cg-cnu
cg-cnu / screenshotAllChannels.py
Last active December 31, 2015 15:19
screenshot all channels
# ------------------------------------------------------------------------------
# Screenshot all channels
# ------------------------------------------------------------------------------
# Takes screenshot of all the channels for the current view.
# Specify the path and setting in View > Screenshot Settings.
# *IMP*: Keep incremental -> Enabled
#
# copy the script to the same location as your log folder in
# windows: C:\Users\[user_name]\Documents\Mari\Scripts
# linux: /home/[user_name]/Mari/Scripts