maxscript and octane

3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
Post Reply
HHbomb
Licensed Customer
Posts: 1378
Joined: Wed Jun 30, 2010 8:45 pm
Contact:

Hello,
is there a way to have some info to access octane via maxscript ?

I would like to know the corresponding "getclassinstances Bitmaptexture" for octane to have the diffuse map.

Thanks.
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
User avatar
suvakas
Licensed Customer
Posts: 503
Joined: Sun Jun 12, 2011 10:26 am

Hi,

What are you trying to do exactly?
The class of BitmapTexture in Octane is Image_Texture. So the corresponding maxscript for Octane would be "getclassinstances Image_Texture".
But this will give you not only diffuse map, but every Octane bitmap used in the scene.

Suv
HHbomb
Licensed Customer
Posts: 1378
Joined: Wed Jun 30, 2010 8:45 pm
Contact:

hello suv, thanks for reply
in fact it was the first question....
I would like to list all maps used in the scene and print name/size.
My last render said "RENDER FAILED !" 'cause of a large map (I forgot to resize it)...
It would be great to know all map sizes without making an archive to see all maps...
I'm a very bad maxscripter but I would like to make something like that. I think that could help many people (me too)
When I write :
getclassinstances Image_Texture
I get
#(Map #16:Image Texture, Map #16:Image Texture)
but not the map name...
I'd be great to have maxscript language for octane
Cheers
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
User avatar
suvakas
Licensed Customer
Posts: 503
Joined: Sun Jun 12, 2011 10:26 am

getclassinstances Image_Texture gives you an array of Octane bitmaps in the scene.
You now have to loop through that array and get the info you want for each element.

Here's the script that prints out image name and dimensions.

Code: Select all

for i in (getclassinstances Image_Texture) do
(
	format "% - % x %\n"  (filenameFromPath  i.filename.fileName) i.filename.height i.filename.width
)
Suv
HHbomb
Licensed Customer
Posts: 1378
Joined: Wed Jun 30, 2010 8:45 pm
Contact:

thanks a lot suv ! :-)
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
Post Reply

Return to “Autodesk 3Ds Max”