This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bl_info = { | |
| "name": "Quick Tools", | |
| "description": "A series of tools and menus to enhance and speed up workflow", | |
| "author": "Jonathan Williamson", | |
| "version": (0, 8), | |
| "blender": (2, 6, 7), | |
| "location": "View3D - 'Q' key gives a menu in Object, Edit, and Sculpt modes.", | |
| "warning": '', # used for warning icon and text in addons panel | |
| "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/3D_interaction/quicktools", | |
| "tracker_url": "https://github.com/CGCookie/script-bakery/issues", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bl_info = { | |
| "name": "Quick Tools", | |
| "description": "A series of tools and menus to enhance and speed up workflow", | |
| "author": "Jonathan Williamson", | |
| "version": (0, 8), | |
| "blender": (2, 6, 7), | |
| "location": "View3D - 'Q' key gives a menu in Object, Edit, and Sculpt modes.", | |
| "warning": '', # used for warning icon and text in addons panel | |
| "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/3D_interaction/quicktools", | |
| "tracker_url": "https://github.com/CGCookie/script-bakery/issues", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import bpy | |
| from bpy.props import IntProperty, FloatProperty | |
| class ModalOperator(bpy.types.Operator): | |
| """Move an object with the mouse, example""" | |
| bl_idname = "object.modal_operator" | |
| bl_label = "Simple Mirror" | |
| first_mouse_x = IntProperty() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function cgc_mixpanel_js() { | |
| global $user_login; | |
| get_currentuserinfo(); | |
| ?> | |
| <!-- Mixpanel --> | |
| <script type="text/javascript"> | |
| (function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"===e.location.protocol?"https:":"http:")+'//cdn.mxpnl.com/libs/mixpanel-2.2.min.js';f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f);b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Track account upgrade via gift redemption | |
| function cgc_rcp_track_payment( $payment_id = 0, $args = array(), $amount ) { | |
| if( ! function_exists( 'rcp_get_subscription_name' ) ) | |
| return; | |
| global $wpdb; | |
| $mp = Mixpanel::getInstance( CGC_MIXPANEL_API ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Track account upgrade | |
| function cgc_rcp_account_upgrade( $user_id, $data ) { | |
| if( ! function_exists( 'rcp_get_subscription_name' ) ) | |
| return; | |
| $mp = Mixpanel::getInstance( CGC_MIXPANEL_API ); | |
| $user = get_userdata( $user_id ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: Show Posts Short Code | |
| Version: 0.0.1 | |
| Author: Jonathan Williamson | |
| */ | |
| function jonathan_show_posts_shortcode($atts, $content = null ) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Track account upgrade | |
| function cgc_rcp_account_upgrade( $user_id, $data ) { | |
| if( ! function_exists( 'rcp_get_subscription_name' ) ) | |
| return; | |
| $mp = Mixpanel::getInstance( CGC_MIXPANEL_API ); | |
| $user = get_userdata( $user_id ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import bpy | |
| import os | |
| def kmi_props_setattr(kmi_props, attr, value): | |
| try: | |
| setattr(kmi_props, attr, value) | |
| except AttributeError: | |
| print("Warning: property '%s' not found in keymap item '%s'" % | |
| (attr, kmi_props.__class__.__name__)) | |
| except Exception as e: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bl_info = { | |
| "name": "Alternate Object Hiding", | |
| "author": "Jonathan Williamson", | |
| "version": (1, 0), | |
| "blender": (2, 65, 0), | |
| "location": "View3D", | |
| "description": "Unhides objects while keeping them deselected", | |
| "warning": "", | |
| "wiki_url": "", | |
| "category": "Object"} |
OlderNewer