Jump to content


Photo

Cool Cinema 4D script "Imageplane"


  • Please log in to reply
42 replies to this topic

#1 scott frizzle

scott frizzle

    MoGraph Demi-god

  • Members
  • 562 posts
  • 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.

Edited by scott frizzle, 28 February 2007 - 01:48 AM.


#2 Sao_Bento

Sao_Bento

    Sermonizes Mograph to the Masses

  • Admin
  • 5,083 posts
  • Gender:Male
  • Location:San Francisco Bay Area
  • Interests:At this point, pretty much nothing.

Posted 27 February 2007 - 11:30 PM

Three cheers for James for making it, and Scott for sharing it! - Awesome stuff.

As the warrior-poet Ice Cube once said "If the day does not require an AK, it is good"

 

#3 jeffrey

jeffrey

    MoGraph Megastar

  • Members
  • 259 posts
  • 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?

#4 ynaka

ynaka

    MoGraph Superstar

  • Members
  • 174 posts
  • Gender:Male
  • Location:10011

Posted 28 February 2007 - 12:58 AM

thank you!

#5 tcastudios

tcastudios

    MoGraph Demi-god

  • Members
  • 548 posts

Posted 28 February 2007 - 01:01 AM

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
R14+ | OSX | xfiles Cinema4D Tools

#6 C.Smith

C.Smith

    Sermonizes Mograph to the Masses

  • Members
  • 2,929 posts
  • Gender:Male
  • Location:Santa Monica
  • Interests:Keepin it real.

Posted 28 February 2007 - 01:08 AM

pimp. been wanting this exact thing. kudos.
chris smith :: some of my work

#7 pixel_pimp

pixel_pimp

    MoGraph Demi-god

  • Members
  • 576 posts
  • Gender:Male

Posted 28 February 2007 - 02:04 AM

that is RAD!

#8 JamesMK

JamesMK

    Newbie

  • Members
  • 4 posts

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




.

#9 the_Monkey

the_Monkey

    simian

  • Members
  • 2,011 posts
  • 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

#10 digspat

digspat

    Newbie

  • Members
  • 3 posts

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?

#11 Sao_Bento

Sao_Bento

    Sermonizes Mograph to the Masses

  • Admin
  • 5,083 posts
  • Gender:Male
  • Location:San Francisco Bay Area
  • Interests:At this point, pretty much nothing.

Posted 28 February 2007 - 05:33 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?

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.

As the warrior-poet Ice Cube once said "If the day does not require an AK, it is good"

 

#12 scott frizzle

scott frizzle

    MoGraph Demi-god

  • Members
  • 562 posts
  • Location:Maine USA

Posted 28 February 2007 - 05:36 PM

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.

#13 Guest_dumbo_*

Guest_dumbo_*
  • Guests

Posted 28 February 2007 - 11:49 PM

awesome. this script will be so useful. cheers guys

#14 Colin@movecraft

Colin@movecraft

    MoGraph Demi-god

  • Members
  • 509 posts
  • 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

#15 JamesMK

JamesMK

    Newbie

  • Members
  • 4 posts

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.

#16 fluiddesign

fluiddesign

    Newbie

  • Members
  • 2 posts
  • 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.

#17 JamesMK

JamesMK

    Newbie

  • Members
  • 4 posts

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.

#18 fluiddesign

fluiddesign

    Newbie

  • Members
  • 2 posts
  • Location:Cupertino, CA

Posted 05 March 2007 - 08:28 PM

OK, thanks for the prompt reply.

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.



#19 tcastudios

tcastudios

    MoGraph Demi-god

  • Members
  • 548 posts

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
R14+ | OSX | xfiles Cinema4D Tools

#20 kurtzmedias

kurtzmedias

    MoGraph Regular

  • Members
  • 59 posts
  • Gender:Male
  • Location:france
  • Interests:kurtz4@mac.com / SKYPE : kurtzmedias

Posted 07 March 2007 - 08:50 PM

Simply great !!!!! :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users