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 c4d | |
from c4d import gui | |
# Welcome to the world of Python | |
def axe(objet, matrice, relatif = True) : | |
if relatif : m_obj = objet.GetMl() | |
else : m_obj = objet.GetMg() | |
m = ~matrice * m_obj |
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: WooCommerce Remove Billing Fields for Free Virtual Products | |
* Plugin URI: https://gist.github.com/BFTrick/7873168 | |
* Description: Remove the billing address fields for free virtual orders | |
* Author: Patrick Rauland | |
* Author URI: http://patrickrauland.com/ | |
* Version: 2.0 | |
* | |
* This program is free software: you can redistribute it and/or modify |
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 // only copy if needed | |
/** | |
* Removes coupon form, order notes, and several billing fields if the checkout doesn't require payment. | |
* | |
* Tutorial: http://skyver.ge/c | |
*/ | |
function sv_free_checkout_fields() { | |
// first, bail if the cart needs payment, we don't want to do anything |
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 c4d | |
from c4d import gui | |
# Welcome to the world of Python | |
# Author: Mike Udin, | |
# Tutorial here http://mikeudin.net/2018/02/28/cinema-4d-python-grouping/ | |
# 2018 | |
def main(): | |
obs = doc.GetActiveObjects(0) |
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 c4d | |
from c4d import gui | |
from random import shuffle | |
#Welcome to the world of Python | |
def main(): | |
objs = doc.GetActiveObjects(2) | |
if not objs: | |
gui.MessageDialog('Please select some objects!') |
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 c4d | |
# Toggle viewport parameter Title save and Action Save | |
# Author: Mike Udin | |
# http://mikeudin.net | |
def main(): | |
bd = doc.GetActiveBaseDraw() | |
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 c4d | |
# Toggle selected objects visibility in Editor and Renderer | |
# SHIFT - toggle visibility in Editor only | |
# CONTROL - toggle visibility in Renderer only | |
# Author: Mike Udin | |
# http://mikeudin.net | |
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 c4d | |
# Toggle selecting render settings Render Region parameter | |
# Author: Mike Udin | |
# http://mikeudin.net | |
def main(): | |
rd = doc.GetActiveRenderData() | |
rd[c4d.RDATA_RENDERREGION] = not rd[c4d.RDATA_RENDERREGION] | |
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 c4d | |
# Toggle selecting between different tools | |
# Author: Mike Udin | |
# http://mikeudin.net | |
def main(): | |
values = (200000083, # Live Selection | |
200000088, # Move |
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 c4d | |
from c4d import utils | |
# This script creates new Sweep Nurbs object from selected edge | |
# Author: Mike Udin, | |
# Tutorial here http://mikeudin.net/2017/01/10/cinema-4d-python-send-modelling-command | |
# 2016 | |
def main(): |