Jump to content
Sign in to follow this  
scott frizzle

Cool Cinema 4D script "Imageplane"

Recommended Posts

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.scottfrizzle.com/imageplane/ima...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

Share this post


Link to post
Share on other sites

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.kaufeldt3d.com/plugs/imageplane_0.3.zip

 

 

 

 

.

Share this post


Link to post
Share on other sites
Guest Sao_Bento
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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

 

http://www.kaufeldt3d.com/plugs/imageplane_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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Does this script work for version 9.6? Having trouble getting it to appear in the Script manager, thanks for your help.

Get the R10 demo, open the script in the script editor, copy the code and paste it in 9.6. The changes in scripting between R9.6 and R10 weren't big so chances are it will work.

Cheers

Björn

Share this post


Link to post
Share on other sites

This saves HOURS! Especially great that it sized the plane to the image. In the course of things, you have to create image planes probably a thousand times a year.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...