<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>just Joshing &#187; photoshop</title>
	<atom:link href="http://www.just-joshing.com/tag/photoshop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.just-joshing.com</link>
	<description>in 3D!</description>
	<lastBuildDate>Tue, 24 Aug 2010 16:32:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Lagos Church, rhinos and grasshoppers.</title>
		<link>http://www.just-joshing.com/2010/07/28/lagos-church-with-grasshopper-and-rhino/</link>
		<comments>http://www.just-joshing.com/2010/07/28/lagos-church-with-grasshopper-and-rhino/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 12:00:34 +0000</pubDate>
		<dc:creator>Joshua</dc:creator>
				<category><![CDATA[image]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[3ds Max]]></category>
		<category><![CDATA[DOS]]></category>
		<category><![CDATA[maxwell]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[post production]]></category>
		<category><![CDATA[VRay]]></category>

		<guid isPermaLink="false">http://www.just-joshing.com/?p=484</guid>
		<description><![CDATA[
In December last year I worked closely with Dos Architects to develop their competition entry to design a church in Lagos Nigeria.
This was an exciting project for me to be involved in concept development working closely with Dos Architects and the engineers AKT to produce something that we feel is a great result.
Today World Architecture [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.just-joshing.com/wp-content/uploads/2010/02/Lagos_Exterior_low.jpg" class="floatbox" rev="group:484 caption:`Lagos Church`"><img class="alignnone size-thumbnail wp-image-593" title="Lagos Church" src="http://www.just-joshing.com/wp-content/uploads/2010/02/Lagos_Exterior_low-400x283.jpg" alt="Lagos Church" width="400" height="283" /></a></p>
<p>In December last year I worked closely with <a href="http://www.dosarchitects.com/">Dos Architects</a> to develop their competition entry to design a church in Lagos Nigeria.</p>
<p>This was an exciting project for me to be involved in concept development working closely with <a href="http://www.dosarchitects.com/" target="_blank">Dos Architects</a> and the engineers <a href="http://www.akt-uk.com/">AKT</a> to produce something that we feel is a great result.</p>
<p>Today <a href="http://worldarchitecturenews.com/index.php?fuseaction=wanappln.projectview&amp;upload_id=14429" target="_blank">World Architecture News</a> have published an article on the project.</p>
<p>It was important that although our design was quite contemporary it was still derived from traditional adn scacred features of a Catholic Church, such as incorporating a cross in the plan to form the Chancel, Transept and Nave,  and including architectural features such as a modern interpretation of the flying buttress to create aisles.</p>
<p><span id="more-484"></span></p>
<p>Also, it was important for us that design was easily constructed and maintained by building methods and resources local to it&#8217;s location in Lagos Nigeria.</p>
<h3>Grasshopper and Rhino.</h3>
<p>We developed the concept using Grasshopper and Rhino 3D, an analytical design solution that enabled us to manipulate the design real-time just by altering two lines that defined the canopy.<br />
<a href="http://www.just-joshing.com/wp-content/uploads/2010/02/grasshopper.jpg" class="floatbox" rev="group:484 caption:`grasshopper`"><img class="alignnone size-thumbnail wp-image-486" title="grasshopper" src="http://www.just-joshing.com/wp-content/uploads/2010/02/grasshopper-400x232.jpg" alt="grasshopper" width="400" height="232" /></a></p>
<p>The structure would then be updated analytically using key parameters such as the arch spacing and aisle width. This meant that we could visualise our changes immediately without having to go back and rebuild the entire model, enabling us to get feedback over design changes much quicker than when using traditional design techniques.<br />
<a href="http://www.just-joshing.com/wp-content/uploads/2010/02/lagos_lines_combo.jpg" class="floatbox" rev="group:484 caption:`lagos_lines_combo`"><img class="alignnone size-thumbnail wp-image-487" title="lagos_lines_combo" src="http://www.just-joshing.com/wp-content/uploads/2010/02/lagos_lines_combo-400x130.jpg" alt="lagos_lines_combo" width="400" height="130" /></a></p>
<p>This program was then developed over the project program to make more and more of the design driven by this analytical solution.</p>
<h3>Rendering.</h3>
<p><a href="http://www.just-joshing.com/wp-content/uploads/2010/02/lagos_interior1.jpg" class="floatbox" rev="group:484 caption:`lagos_interior1`"><img class="alignnone size-thumbnail wp-image-488" title="lagos_interior1" src="http://www.just-joshing.com/wp-content/uploads/2010/02/lagos_interior1-400x347.jpg" alt="lagos_interior1" width="400" height="347" /></a><br />
We felt that the interior of the church needed special attention to the quality of light. The main window features special glass of varying thickness that represents the sun, with rays emanating from the alter area. Maxwell render provided us a solution to simulate this with great effect.</p>
<p>Design by DOS Architects and Joshua Newman.</p>
<p>Illustration by Joshua Newman and Dimitar Karanikolov from <a href="http://www.meshroom.com" target="_blank">meshroom</a>.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 195px; width: 1px; height: 1px; overflow: hidden;"><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } -->contemporary</div>
]]></content:encoded>
			<wfw:commentRss>http://www.just-joshing.com/2010/07/28/lagos-church-with-grasshopper-and-rhino/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>inspirato</title>
		<link>http://www.just-joshing.com/2010/05/11/inspirato/</link>
		<comments>http://www.just-joshing.com/2010/05/11/inspirato/#comments</comments>
		<pubDate>Tue, 11 May 2010 16:29:49 +0000</pubDate>
		<dc:creator>Joshua</dc:creator>
				<category><![CDATA[image]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[3ds Max]]></category>
		<category><![CDATA[inspirato]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[post production]]></category>
		<category><![CDATA[rendering]]></category>

		<guid isPermaLink="false">http://www.just-joshing.com/?p=563</guid>
		<description><![CDATA[
meshroom is honoured to have been selected to have a couple of images in the new book, &#8216;Inspirato&#8217; from 3DATS. No-one really knew what to expect from the book, and even some were quite tough on the team behind it on CGArchitect despite all of their hard work.
I&#8217;ve got a copy of it on my [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.just-joshing.com/wp-content/uploads/2010/05/meshroom_inspirato2.jpg" class="floatbox" rev="group:563 caption:`meshroom_inspirato2`"><img class="alignnone size-thumbnail wp-image-565" title="meshroom_inspirato2" src="http://www.just-joshing.com/wp-content/uploads/2010/05/meshroom_inspirato2-400x300.jpg" alt="meshroom_inspirato2" width="400" height="300" /></a></p>
<p>meshroom is honoured to have been selected to have a couple of images in the new book, &#8216;Inspirato&#8217; from 3DATS. No-one really knew what to expect from the book, and even some were quite tough on the team behind it on CGArchitect despite all of their hard work.</p>
<p><span id="more-563"></span>I&#8217;ve got a copy of it on my desk and not only is the work inside inspirational, but the quality of the book is superb. Well done to Brian Smith and the rest of the team that have been working on it.</p>
<p><a href="http://www.just-joshing.com/wp-content/uploads/2010/05/meshroom_inspirato1.jpg" class="floatbox" rev="group:563 caption:`meshroom_inspirato1`"><img title="meshroom_inspirato1" src="http://www.just-joshing.com/wp-content/uploads/2010/05/meshroom_inspirato1-400x300.jpg" alt="meshroom_inspirato1" width="400" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.just-joshing.com/2010/05/11/inspirato/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DOS Gabon image update.</title>
		<link>http://www.just-joshing.com/2009/12/17/dos-gabon-image-update/</link>
		<comments>http://www.just-joshing.com/2009/12/17/dos-gabon-image-update/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 11:50:25 +0000</pubDate>
		<dc:creator>Joshua</dc:creator>
				<category><![CDATA[image]]></category>
		<category><![CDATA[3ds Max]]></category>
		<category><![CDATA[DOS]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[post production]]></category>
		<category><![CDATA[VRay]]></category>

		<guid isPermaLink="false">http://www.just-joshing.com/?p=394</guid>
		<description><![CDATA[
We recently completed another update for DOS Architects on their project, Hotel Gabon. This time around the design was much more finalised enabling us to take the images further than when we first worked on the job. These images were completed with meshroom. Rendered in VRay with post production carried out in Photoshop.


]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.just-joshing.com/wp-content/uploads/2009/11/0-Lobby_FINAL_colourize_low.jpg" class="floatbox" rev="group:394 caption:`View of the lobby for DOS Architects Hotel Gabon.`"><img class="size-thumbnail wp-image-453 alignnone" title="View of the lobby for DOS Architects Hotel Gabon." src="http://www.just-joshing.com/wp-content/uploads/2009/11/0-Lobby_FINAL_colourize_low-400x241.jpg" alt="View of the lobby for DOS Architects Hotel Gabon." width="400" height="241" /></a><br />
We recently completed another update for DOS Architects on their project, Hotel Gabon. This time around the design was much more finalised enabling us to take the images further than when we first worked on the job. These images were completed with <a href="http://www.meshroom.com">meshroom</a>. Rendered in VRay with post production carried out in Photoshop.</p>
<p><span id="more-394"></span></p>
<p><a href="http://www.just-joshing.com/wp-content/uploads/2009/11/2-Restaurant_FINAL_low.jpg" class="floatbox" rev="group:394 caption:`View of the restaurant for DOS Architects Hotel Gabon.`"><img class="size-thumbnail wp-image-454" title="View of the restaurant for DOS Architects Hotel Gabon." src="http://www.just-joshing.com/wp-content/uploads/2009/11/2-Restaurant_FINAL_low-400x241.jpg" alt="View of the restaurant for DOS Architects Hotel Gabon." width="400" height="241" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.just-joshing.com/2009/12/17/dos-gabon-image-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>interactive POP.</title>
		<link>http://www.just-joshing.com/2009/11/16/interactive-pop/</link>
		<comments>http://www.just-joshing.com/2009/11/16/interactive-pop/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 13:13:02 +0000</pubDate>
		<dc:creator>Joshua</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[3ds Max]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Foster and Partners]]></category>
		<category><![CDATA[papervision]]></category>
		<category><![CDATA[photoshop]]></category>

		<guid isPermaLink="false">http://www.just-joshing.com/?p=403</guid>
		<description><![CDATA[
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_POP_1675157931"
			class="flashmovie"
			width="416"
			height="272">
	<param name="movie" value="http://www.just-joshing.com/files/POP/POP.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.just-joshing.com/files/POP/POP.swf"
			name="fm_POP_1675157931"
			width="416"
			height="272">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
As a modern day 3D artist I need to mix both the left and right sides of the brain. It might have seemed inconceivable twenty years ago that maths and computer coding would play such a large of modern day art and [...]]]></description>
			<content:encoded><![CDATA[
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_POP_965613543"
			class="flashmovie"
			width="416"
			height="272">
	<param name="movie" value="http://www.just-joshing.com/files/POP/POP.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.just-joshing.com/files/POP/POP.swf"
			name="fm_POP_965613543"
			width="416"
			height="272">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>As a modern day 3D artist I need to mix both the left and right sides of the brain. It might have seemed inconceivable twenty years ago that maths and computer coding would play such a large of modern day art and illustration.<br />
I&#8217;ve been experimenting with papervision and 3D Flash recently, and while most action script guru&#8217;s are trying to get their heads around 3D I&#8217;m coming from the other side and blinking my weary eyes at action script. No fear, there is some progress in a straightforward application of interactivity on a architectural project that is geometrically pure, the Palace of Peace.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.just-joshing.com/2009/11/16/interactive-pop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sofia masterplan.</title>
		<link>http://www.just-joshing.com/2009/11/09/sofia-masterplan/</link>
		<comments>http://www.just-joshing.com/2009/11/09/sofia-masterplan/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 13:40:11 +0000</pubDate>
		<dc:creator>Joshua</dc:creator>
				<category><![CDATA[video]]></category>
		<category><![CDATA[3ds Max]]></category>
		<category><![CDATA[compositing]]></category>
		<category><![CDATA[Foster and Partners]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[post production]]></category>
		<category><![CDATA[video editing]]></category>
		<category><![CDATA[VRay]]></category>

		<guid isPermaLink="false">http://www.just-joshing.com/?p=396</guid>
		<description><![CDATA[[There is a video that cannot be displayed in this feed. Visit the blog entry to see the video.]
Here is the short aerial camera video that we (the meshroom) completed for the Foster and Partners Sofia masterplan competition this year. The job was completed in 3DStudio Max and VRay and initially rendered as still images [...]]]></description>
			<content:encoded><![CDATA[<p>[There is a video that cannot be displayed in this feed. <a href="http://www.just-joshing.com/2009/11/09/sofia-masterplan/">Visit the blog entry to see the video.]</a></p>
<p>Here is the short aerial camera video that we (the <a title="meshroom" href="http://www.meshroom.com" target="_blank">meshroom</a>) completed for the Foster and Partners Sofia masterplan competition this year. The job was completed in 3DStudio Max and VRay and initially rendered as still images at 8K pixels wide. We rendered them this large as they were going to be printed at an obscenely large scale. My colleague Dimitar was in Sofia when the exhibition was on and had a chance to see the final images printed out this size. The sunset image is shown at the end of the video.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.just-joshing.com/2009/11/09/sofia-masterplan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dublin childrens hospital with NBBJ.</title>
		<link>http://www.just-joshing.com/2009/10/26/nbbj-and/</link>
		<comments>http://www.just-joshing.com/2009/10/26/nbbj-and/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 19:31:50 +0000</pubDate>
		<dc:creator>Joshua</dc:creator>
				<category><![CDATA[image]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[3ds Max]]></category>
		<category><![CDATA[NBBJ]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[post production]]></category>
		<category><![CDATA[VRay]]></category>

		<guid isPermaLink="false">http://www.just-joshing.com/?p=372</guid>
		<description><![CDATA[
It&#8217;s always nice to see your images published. Here is a link to the Irish Times which features an image that we at meshroom recently completed for NBBJ London. I worked with our  team, in particular Dimitar Karanikolov and Nedyalko Nedyalkov, to complete the image for a design in it&#8217;s early stages for the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.just-joshing.com/wp-content/uploads/2009/10/NBBJ_Dublin_Childrens_Hospital.jpg" class="floatbox" rev="group:372 caption:`A computer generated 3D visualisation for NBBJ's winning design of the Dublin Childrens Hospital.`"><img class="size-thumbnail wp-image-374" title="A computer generated 3D visualisation for NBBJ's winning design of the Dublin Childrens Hospital." src="http://www.just-joshing.com/wp-content/uploads/2009/10/NBBJ_Dublin_Childrens_Hospital-400x300.jpg" alt="A computer generated 3D visualisation for NBBJ's winning design of the Dublin Childrens Hospital." width="400" height="300" /></a></p>
<p>It&#8217;s always nice to see your images published. Here is a link to the Irish Times which features an image that we at <a href="http://www.meshroom.com" target="_blank">meshroom </a>recently completed for NBBJ London. I worked with our  team, in particular Dimitar Karanikolov and Nedyalko Nedyalkov, to complete the image for a design in it&#8217;s early stages for the architects NBBJ.</p>
<p>Article <a href="http://www.irishtimes.com/newspaper/ireland/2009/1016/1224256788104.html" target="_blank">here</a>, <a href="http://www.architectsjournal.co.uk/news/daily-news/nbbj-bag-huge-irish-childrens-hospital/5210767.article" target="_blank">here</a> and <a href="http://www.worldarchitecturenews.com/index.php?fuseaction=wanappln.projectview&amp;upload_id=12782" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.just-joshing.com/2009/10/26/nbbj-and/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>zagreb airport.</title>
		<link>http://www.just-joshing.com/2009/06/11/zagreb-airport/</link>
		<comments>http://www.just-joshing.com/2009/06/11/zagreb-airport/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 20:26:41 +0000</pubDate>
		<dc:creator>Joshua</dc:creator>
				<category><![CDATA[image]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[3ds Max]]></category>
		<category><![CDATA[compositing]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[post production]]></category>
		<category><![CDATA[video editing]]></category>
		<category><![CDATA[VRay]]></category>

		<guid isPermaLink="false">http://www.just-joshing.com/?p=139</guid>
		<description><![CDATA[[There is a video that cannot be displayed in this feed. Visit the blog entry to see the video.]
This is a short video showing the changes that take place during the post production of a rendering before it is finished. The renders that we create are of a very high standard, but we will usually [...]]]></description>
			<content:encoded><![CDATA[<p>[There is a video that cannot be displayed in this feed. <a href="http://www.just-joshing.com/2009/06/11/zagreb-airport/">Visit the blog entry to see the video.]</a></p>
<p>This is a short video showing the changes that take place during the post production of a rendering before it is finished. The renders that we create are of a very high standard, but we will usually enhance them using photoshop to get that extra touch. Many special effects such as volume lighting can be created in 3D at the cost of render time, but to add such an effect in photoshop or by using render effects and layers is very straight forward.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.just-joshing.com/2009/06/11/zagreb-airport/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>maxscript open bitmaps in photoshop.</title>
		<link>http://www.just-joshing.com/2009/06/03/open-bitmaps-in-photoshop/</link>
		<comments>http://www.just-joshing.com/2009/06/03/open-bitmaps-in-photoshop/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 10:08:05 +0000</pubDate>
		<dc:creator>Joshua</dc:creator>
				<category><![CDATA[maxscript]]></category>
		<category><![CDATA[MXS]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.just-joshing.com/?p=46</guid>
		<description><![CDATA[This is an oldie but a goody. Put simply, it is a script that will open 3ds Max material maps in photoshop. I use it in my quad menu. If photoshop isn&#8217;t open, then it will open it for you.
I&#8217;ve recently updated it to work with class instances, a much more efficient and almost foolproof [...]]]></description>
			<content:encoded><![CDATA[<p>This is an oldie but a goody. Put simply, it is a script that will open 3<span><span>ds</span></span> Max material maps in <span><span>photoshop</span></span>. I use it in my quad menu. If <span><span>photoshop</span></span> isn&#8217;t open, then it will open it for you.</p>
<p><span>I&#8217;ve recently updated it to work with class instances, a much more efficient and almost foolproof way of ensuring we get all the maps.</span></p>
<p>It has two methods of functioning.</p>
<p>1. if the material editor is open, it will open all the maps used in the current material</p>
<p>2.if the editor is closed, then it will load all the maps used in the materials of the selected objects.</p>
<p>This is <span>really</span> handy script if you want to quickly adjust some materials maps in <span><span>photoshop</span></span></p>
<p>for installation, just drop the <span><span>mzp</span></span> file onto you max <span><span>viewport</span></span> and then add the script to your quad (or menu, or toolbar!).</p>
<p>customize | customize user interface | category : <span><span>JNScripts</span></span></p>
<p>Download the installation file <a href="http://www.just-joshing.com/files/photoshop_tool_3.2.mzp"><strong>here</strong></a></p>
<h6><span id="more-46"></span></h6>
<p>Here is a run through of what&#8217;s happening under the hood.</p>
<pre>--------------------------------------------------------------------------------
--	Open bitmaps in photoshop
--	version 3.1
--	max version 2008, 2009, 2010
--	written by Joshua Newman
--	written		25/05/04
--	updated 	07/04/09
--	www.joshuanewman.net
--	copyright 2004, 2009
--------------------------------------------------------------------------------

-- if the material editor is open, the current materials bitmaps will be opened in photoshop.
-- otherwise all the bitmaps used in the current selection will be opened.

macroScript Photoshop category:"JN Scripts" tooltip:"Load bitmaps in Photoshop." icon:#("JNpshp",1)
(

	On isEnabled return (Try((Selection.count!=0 and selection[1].material!=undefined) or mateditor.isopen())Catch())
	On isVisible return (Try((Selection.count!=0 and selection[1].material!=undefined) or mateditor.isopen())Catch())
	On Execute Do
	(
		bitmaps=#()
		if mateditor.isopen() then
		(
			a=medit.getcurmtl()
			bitmaps=getClassInstances Bitmaptexture target:a
		) else
		(
			sel=selection as array
			for s in sel do
			(
				if s.material!=undefined then
				(
					newbitmaps=getclassinstances Bitmaptexture target:s.material
					for b in newbitmaps do if (finditem bitmaps b==0) then append bitmaps b
				)
			)
		)
		pshop=CreateOLEObject"Photoshop.Application"
		pshop.Visible=true
		for b in bitmaps do pshop.open b.filename
	)
)</pre>
<p><strong>Step by step.</strong><br />
<span><span>macroscript</span></span> definition.</p>
<pre>macroScript Photoshop category:"JN Scripts" tooltip:"Load bitmaps in Photoshop." icon:#("JNpshp",1)
(</pre>
<p>This defines the script as a macro, this allows you to add it as a keyboard shortcut, quad menu item, drop down menu item, or button on your tool bar.</p>
<pre>	On isEnabled return (Try((Selection.count!=0 and selection[1].material!=undefined) or mateditor.isopen())Catch())
	On isVisible return (Try((Selection.count!=0 and selection[1].material!=undefined) or mateditor.isopen())Catch())</pre>
<p>These two lines whether or not the tool is enabled or visible. For example, if it is in a quad menu, then at least one of these conditions must be met for the tool to be visible; 1. Either the material editor has to be open, 2. at least on object must be selected, 3. the first <span>selected</span> object must have a material.</p>
<pre>	On Execute Do
	(</pre>
<p>Where to start when the script is executed.</p>
<pre>		bitmaps=#()</pre>
<p>let&#8217;s define a variable to hold all the bitmaps we find</p>
<pre>		if mateditor.isopen() then
		(</pre>
<p>Is the material editor open?</p>
<pre>			a=medit.getcurmtl()</pre>
<p>if yes then lets get the currently selected material and place it in a temporary variable &#8216;a&#8217;</p>
<pre>			newbitmaps=getClassInstances Bitmaptexture target:a</pre>
<p>now use the <em><span><span>getClassInstances</span></span> </em>function to get all dependents of the class <em><span><span>Bitmaptexture</span></span></em> and put them into <span>our</span> bitmaps variable. This will now contain an array.</p>
<pre>		) else
		(</pre>
<p><span><span>ok</span></span>, so the material editor isn&#8217;t open then.</p>
<pre>			sel=selection as array</pre>
<p>Let&#8217;s convert the current selection into an array <span>of</span> objects.</p>
<pre>			for s in sel do
			(</pre>
<p>Now iterate through that selection object by object,</p>
<pre>				if s.material!=undefined then
				(</pre>
<p>and check to see if has a material assigned.</p>
<pre>					newbitmaps=getclassinstances Bitmaptexture target:s.material</pre>
<p>get all the bitmaps used in that material into a temporary variable, returns an array.</p>
<pre>					for b in newbitmaps do if (finditem bitmaps b==0) then append bitmaps b</pre>
<p>We then iterate through the array and check to see if the bitmap is already listed and add it if it isn&#8217;t. I&#8217;ve changed this line to remove the <em>appendifunique </em>function since this function was added to Max in version 2008. This will allow my script to work in earlier versions of max.</p>
<pre>				)
			)
		)
		pshop=CreateOLEObject"Photoshop.Application"</pre>
<p>This creates that OLE communication link with <span><span>photoshop</span></span>.</p>
<pre>		pshop.Visible=true</pre>
<p><span style="color: #808080;"> </span>This makes <span><span>photoshop</span></span> visible on the desktop, if it isn&#8217;t already.</p>
<pre>		for b in bitmaps do if (doesfileexist b.filename) then pshop.open b.filename else (print b.filename)</pre>
<p><span style="color: #808080;"> </span>Finally, we iterate through our array of bitmaps and check to see that the filenames are valid before opening them one by one in <span>photoshop</span>.</p>
<pre>	)
)</pre>
<p>Don&#8217;t forget to close your parenthesis!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.just-joshing.com/2009/06/03/open-bitmaps-in-photoshop/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
