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, documents | |
def main(): | |
# BaseDraw | |
bd = doc.GetActiveBaseDraw() | |
# The camera view | |
view = bd.GetSafeFrame() |
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 | |
def main(): | |
doc = c4d.documents.GetActiveDocument() | |
op = doc.GetActiveObject() | |
if op is None or op.GetType() != c4d.Opolygon: return | |
bs = op.GetPointS() |
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
# Copy animation crudely to a file and back | |
import c4d | |
import c4d.gui as gui | |
import c4d.storage as storage | |
import json | |
import urllib | |
import os.path | |
import datetime | |
import platform |
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 | |
import re | |
""" | |
1. Create python tag on camera and add this code to it. | |
2. Duplicate tag to other cameras. | |
3. Rename your camera layers to match the frame you want it be be active on, e.g., cam-1, Camera01, 01. | |
""" | |
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
from c4d import gui | |
import shutil | |
num = 0 | |
def countObjectKeyframe(obj): | |
global num | |
tracks = obj.GetCTracks() |
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
# Add User Data (ID=1) as Integer | |
# In python tag | |
def main(): | |
b = op.GetObject() | |
idx = b[c4d.ID_USERDATA,1] | |
children = b.GetChildren() | |
for i, c in enumerate(children): | |
v = 2 if idx == i else 1 |
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
""" | |
Toggle-AntiAliasing | |
Copyright: Erwin Santacruz, www.990adjustments.com | |
Written for CINEMA 4D R12.016 | |
Name-US: Toggle-AntiAliasing | |
Description-US: A quick toggle for anti-aliasing settings. | |
Make it a button for quick access |
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
# Script by RuiMac - 09-2015 | |
import c4d | |
from c4d import gui | |
#Welcome to the world of Python | |
def replace(obj,m1,m2): | |
# while there are still objects... | |
while obj: | |
# get all the tags of the object |
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
# Copyright (c) 2016 Niklas Rosenstein | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in |
OlderNewer