This file contains 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 | |
# Welcome to the world of Python | |
# Author: Mike Udin, http://mikeudin.net | |
# 2016 | |
def main(): | |
objs = doc.GetActiveObjects(1) | |
if not objs: return | |
doc.StartUndo() |
This file contains 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 randint | |
# Welcome to the world of Python | |
# Author: Mike Udin, | |
# Tutorial here http://mikeudin.net/?p=2915 | |
# 2016 | |
def randomColor(x,y): |
This file contains 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 os import path as p | |
from c4d import gui | |
# Welcome to the world of Python | |
# Author: Mike Udin, | |
# Tutorial here https://mikeudin.net/2016/10/06/cinema-4d-python-tips-working-with-text-files/ | |
# 2016 | |
def main(): |
This file contains 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 os import path as p | |
from c4d import storage as st | |
from c4d import gui | |
# Welcome to the world of Python | |
# Author: Mike Udin, | |
# Tutorial here http://mikeudin.net/?p=2930 | |
# 2016 |
This file contains 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 | |
# Check out tutoral here | |
# http://mikeudin.net/2017/01/05/cinema-4d-python-recursive-hierarchy-iteration/ | |
def recur_iter(obj,ref): | |
while obj: | |
if obj[c4d.INSTANCEOBJECT_LINK] == ref: | |
obj.SetBit(c4d.BIT_ACTIVE) | |
recur_iter(obj.GetDown(),ref) |
This file contains 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(): |
This file contains 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 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 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 | |
OlderNewer