::: mograph :::: Cool Cinema 4D script "Imageplane" - ::: mograph :::

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Cool Cinema 4D script "Imageplane"

#1 User is online   scott frizzle Icon

  • MoGraph Demi-god
  • Group: Members
  • Posts: 464
  • Joined: 24-July 06
  • Location:Maine USA

Posted 27 February 2007 - 11:11 PM

Here's a very cool script from the illustrious James Kaufeldt. I've been wanting a script like this forever, and mentioned it to James today, who turns this thing around a couple hours later just for the heck of it. I'm so jealous of people who can code.

Anyway, this script will import an image into C4D and automatically create a material with the image in the luminance and alpha channels of the material, and then create a plane with -z orientation and apply the material to it. Basically, it's a way to import a bitmap image into Cinema's 3d space without having to do all the manual labor.



If you haven't installed external scripts before, just:

- Open the script manager
- Click 'File' menu and 'Import'
- Find the CSC file and load it
- Once it's loaded, you can click-drag the little icon in the upper left corner of the script manager and drop it somewhere in your layout
- Save your layout
- Done

Here's the link:

http://www.scottfriz...ane_0.2.CSC.zip

Edit: In my original post above I neglected to mention that the plane created by this script has the same dimensions as the image you select, which is one of the best things about it.

This post has been edited by scott frizzle: 28 February 2007 - 01:48 AM

0

#2 User is offline   Sao_Bento Icon

  • Sermonizes Mograph to the Masses
  • Group: Admin
  • Posts: 4,801
  • Joined: 22-July 06
  • Gender:Male
  • Location:San Francisco Bay Area
  • Interests:jogo de capoeria

Posted 27 February 2007 - 11:30 PM

Three cheers for James for making it, and Scott for sharing it! - Awesome stuff.
“Nobody is obliged to be a genius, but everybody is obliged to participate.”

- Philippe S+arck
0

#3 User is offline   jeffrey Icon

  • MoGraph Megastar
  • Group: Members
  • Posts: 259
  • Joined: 29-July 06
  • Location:ny

Posted 28 February 2007 - 12:54 AM

sweet man, how easy u think itd be to customize this to do the same to a .mov?
0

#4 User is offline   ynaka Icon

  • MoGraph Superstar
  • Group: Members
  • Posts: 174
  • Joined: 22-July 06
  • Gender:Male
  • Location:10011

Posted 28 February 2007 - 12:58 AM

thank you!
0

#5 User is online   tcastudios Icon

  • MoGraph Megastar
  • Group: Members
  • Posts: 319
  • Joined: 22-July 06

Posted 28 February 2007 - 01:01 AM

View Postjeffrey, on Feb 28 2007, 01:54 AM, said:

sweet man, how easy u think itd be to customize this to do the same to a .mov?


No changes needed. It works with .mov as well!

Cheers
Lennart
R11 SB | OSX | SteadyCAMPRO
0

#6 User is offline   C.Smith Icon

  • Sermonizes Mograph to the Masses
  • Group: Members
  • Posts: 2,473
  • Joined: 28-July 06
  • Gender:Male
  • Location:D-Town
  • Interests:Keepin it real.

Posted 28 February 2007 - 01:08 AM

pimp. been wanting this exact thing. kudos.
chris smith :: Sugar Film Production | Get CSTools for C4D | Watch CSTools Tutorials by GreyScaleGorilla

...Sounds like something out of a herpes commercial where some lady is rock climbing or doing something else which symbolizes her independence, then out of nowhere she blurts out "I HAVE HERPES." The music gets all serious and you hear a voice over "...there is no cure," cue inspirational music "but treatment is available." Then it cuts to a shot of the bitch on a beach and a guy runs up behind her and puts his arms around her. Good job dumbass, you're dating a skank with herpes. - Maddox.
0

#7 User is offline   pixel_pimp Icon

  • MoGraph Demi-god
  • Group: Members
  • Posts: 509
  • Joined: 24-July 06
  • Gender:Male
  • Location:a town East of Pasadena, CA
  • Interests:Photography, California stuff i.e. Smoke, Earthquake, Sushi.

Posted 28 February 2007 - 02:04 AM

that is RAD!
0

#8 User is offline   JamesMK Icon

  • Newbie
  • Group: Members
  • Posts: 4
  • Joined: 28-February 07

Posted 28 February 2007 - 07:20 AM

So, this is where all ye broadcast dudes hang out...

Anyway, just stopping by to say I'm happy to hear you all seem to find this script useful.

Since it appears it will be used by quite a few of you lot, I've made some additional adjustments. No new features or anything like that though, just a few internal safety measures to make it as reliable as possible:

- Added proper undo support
- Added a rudimentary sanity check to avoid performing anything if the user should happen to select a file that is probably not a bitmap texture (it simply makes sure that the X-dimension of the file is reportedly larger than zero)

Please grab the new 0.3 version here -> http://www.kaufeldt3...geplane_0.3.zip




.
0

#9 User is online   the_Monkey Icon

  • simian
  • Group: Members
  • Posts: 1,705
  • Joined: 22-July 06
  • Gender:Male
  • Location:Brooklyn, NY

Posted 28 February 2007 - 10:27 AM

You've made a lot of friends with that first post.
Thanks a bunch and welcome to mograph.

:)

-m
0

#10 User is offline   digspat Icon

  • Newbie
  • Group: Members
  • Posts: 3
  • Joined: 29-December 06

Posted 28 February 2007 - 05:00 PM

Thisis awesome. The only thing I can't figure out is why the imported plane doesn't react to lighting. Any idea where I'm screwing up?
0

#11 User is offline   Sao_Bento Icon

  • Sermonizes Mograph to the Masses
  • Group: Admin
  • Posts: 4,801
  • Joined: 22-July 06
  • Gender:Male
  • Location:San Francisco Bay Area
  • Interests:jogo de capoeria

Posted 28 February 2007 - 05:33 PM

View Postdigspat, on Feb 28 2007, 09:00 AM, said:

Thisis awesome. The only thing I can't figure out is why the imported plane doesn't react to lighting. Any idea where I'm screwing up?

I don't have it in front of me, but that sounds like it might be adding the image to the luminance channel of the material, rather than the color channel. Just copy the image to the color channel, and turn the luminance channel off.
“Nobody is obliged to be a genius, but everybody is obliged to participate.”

- Philippe S+arck
0

#12 User is online   scott frizzle Icon

  • MoGraph Demi-god
  • Group: Members
  • Posts: 464
  • Joined: 24-July 06
  • Location:Maine USA

Posted 28 February 2007 - 05:36 PM

View PostSao_Bento, on Feb 28 2007, 12:33 PM, said:

I don't have it in front of me, but that sounds like it might be adding the image to the luminance channel of the material, rather than the color channel. Just copy the image to the color channel, and turn the luminance channel off.


Yes, Sao is right, this script places the image into the luminance channel of the material. I'm sure it would be very easy to do a version that puts it into the color channel though.
0

#13 User is offline   dumbo Icon

  • MoGraph Demi-god
  • Group: Members
  • Posts: 453
  • Joined: 11-December 06
  • Location:Melbourne, Australia

Posted 28 February 2007 - 11:49 PM

awesome. this script will be so useful. cheers guys
0

#14 User is online   Colin@movecraft Icon

  • MoGraph Megastar
  • Group: Members
  • Posts: 389
  • Joined: 04-August 06
  • Gender:Male
  • Location:SF, CA

Posted 01 March 2007 - 02:09 AM

Where can I send the beer? We all owe it to you for this script.

:H

colin
0

#15 User is offline   JamesMK Icon

  • Newbie
  • Group: Members
  • Posts: 4
  • Joined: 28-February 07

Posted 01 March 2007 - 08:02 AM

Here's an alternative version that puts the map in the colour channel instead, for those who'd prefer that:

http://www.kaufeldt3...0.31_colour.zip

Beer can be sent by simply placing a sixpack in an unmarked brown paper bag in the waiting room of any train station or airport of your choice. I have a large horde of trained midgets (oh, I really meant to say "vertically challenged people") traveling the world on a regular basis to collect such donations. So, just leave the bag, and sooner or later it will be gone, and you can be fairly certain that I've got it.
0

#16 User is offline   fluiddesign Icon

  • Newbie
  • Group: Members
  • Posts: 2
  • Joined: 10-October 06
  • Location:Cupertino, CA

Posted 05 March 2007 - 08:15 PM

Does this script work for version 9.6? Having trouble getting it to appear in the Script manager, thanks for your help.
0

#17 User is offline   JamesMK Icon

  • Newbie
  • Group: Members
  • Posts: 4
  • Joined: 28-February 07

Posted 05 March 2007 - 08:24 PM

fluiddesign - nope, sorry, it currently only works in R10. I could theoretically make a 9.5+ version, but I don't have time to do that right now. Technically speaking, it should at least load into the 9.6 script manager, but I guess the .CSC format has changed a bit since then. And even if you could load it, the script wouldn't run anyway.
0

#18 User is offline   fluiddesign Icon

  • Newbie
  • Group: Members
  • Posts: 2
  • Joined: 10-October 06
  • Location:Cupertino, CA

Posted 05 March 2007 - 08:28 PM

OK, thanks for the prompt reply.

View PostJamesMK, on Mar 5 2007, 12:24 PM, said:

fluiddesign - nope, sorry, it currently only works in R10. I could theoretically make a 9.5+ version, but I don't have time to do that right now. Technically speaking, it should at least load into the 9.6 script manager, but I guess the .CSC format has changed a bit since then. And even if you could load it, the script wouldn't run anyway.

0

#19 User is online   tcastudios Icon

  • MoGraph Megastar
  • Group: Members
  • Posts: 319
  • Joined: 22-July 06

Posted 05 March 2007 - 08:48 PM

You might try this tip by Rui Mac ( at http://3dattack.net)
Note the CallCommands note (as they can differ in R9 abd R10.

http://3dattack.net/...read.php?t=6665

Cheers
Lennart
R11 SB | OSX | SteadyCAMPRO
0

#20 User is offline   kurtzmedias Icon

  • Newbie
  • Group: Members
  • Posts: 43
  • Joined: 09-November 06
  • Gender:Male
  • Location:france
  • Interests:kurtz4@mac.com / SKYPE : kurtzmedias

Posted 07 March 2007 - 08:50 PM

Simply great !!!!! :)
0

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users