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.
maxscript and octane
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
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
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
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
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
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 |
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.
Suv
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
)
thanks a lot suv ! 

YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |