Showing posts with label C.O.F.F.E.E.. Show all posts
Showing posts with label C.O.F.F.E.E.. Show all posts

May 15, 2011

Display by frame

Little C.O.F.F.E.E script that allow to change objects every frame.

It's quite simple :
It compares the name of the group with the number of the frame and if it matches, the group is displayed.

Simply create a C.O.F.F.E.E tag with the following code on Nulls (groups) witch name are corresponding to the frame during witch they'll be activated (!?!)

****************************************

main(doc,op)
{
var dirframe = op->GetName();               //gets group name
var test = int(evaluate(dirframe));            //converts group name to int
var t = doc->GetTime();                           //get current frame
var frame = t->GetFrame(doc->GetFps()); //get current frame

if(test==frame){   //if group's name = frame number ---> group is active
        op#ID_BASEOBJECT_VISIBILITY_EDITOR=2;
        op#ID_BASEOBJECT_VISIBILITY_RENDER=2;
        }
else{                   //else group is disabled
        op#ID_BASEOBJECT_VISIBILITY_EDITOR=1;
        op#ID_BASEOBJECT_VISIBILITY_RENDER=1;
        }
}
**************************************


Check example file here ---> DISPLAY BY FRAME

Might be used or tweaked for other uses.

Mike

EasyArea plugin

Hi all !
This little plugin places an area light within a selection of 4 points (rectangular is better ... obviously).

This already exists on 3dsmax and Tong suggested me to code an equivalent for us...



EasyArea Plugin from Mike Barrin on Vimeo.

DOWNLOAD HERE

P.S :

1 - Beware to non-uniformely scaled object.

2 - Orientation must be set by hand for single sided areas.

Enjoy !

M!ke

February 5, 2011

Resize and Replace plugin

What the hell is that ?

Easy :  when working in animation with Vray and C4D 11.5, netrender is only working in meters, but many, many of my library's object presets were scaled in cm.

This plugins (very simple) instantly resizes by 1/100 and moves the object at the origin of the scene.

The real advantage is to associate it to a shortcut, and when importing 100x too big objects, a simple keystroke reduces it.

I use it every day. I know units system has been improved in C4D R12, but I still have lots of projects in 11.5.

Simply unpack it in your plugin folder and use C4D command manager to assign a shortcut.

Rename Vray Lights by Type

Little plugin asked by a VrayC4D user to automatically rename lights upon their type.

Simply unpack it in your plugin folder. Access it from the plugin menu.

P.S. : only works on the 3 first levels of hierarchy ... but, this should be enough ...





 M!ke

Light cache Flythrough auto Mblur

Well as the title tries to explain here is a short script that automatically switches on and off the motion blur when rendering the allmighty STRAT'S IR+LC camera animation method.


I wrote it cause I forgot so many times to switch it on or off when launching renders prepasses.

Here is how to set it up (only takes 1 or 2 min) :

AutoID Plugin

Here is simple C.O.F.F.E.E. Plugin that may look useless for many of you but helps me to save some time when I want to work with material IDs. It does attributes different material Ids to all your materials automatically.

AutoID plugin from Mike Barrin on Vimeo.


DOWNLOAD