Tagged 'General Scripting'

access texturemap from VRayDirt

Hi I have a problem for getting texturmap from vraydirt that already inside some object.if i using $.material.diffusemap.vraydirt.texmap_occluded_color.bitmaptexture.filename
it result error Unknown property: "texmap_occluded_color" in .
I would be realy greatfull if someone could help me to solve this problem since i have so many material i have to change.

Material control panel problem

Hi all,
I'm quite new to maxscript and I'm in trouble with a script I'm developing for a personal project.

The script will be applied to a control object, and consist in a simple panel where to change vrayLightMtl multiplier for some other objects in scene.

It works fine in current scene, but if I merge that scene in another one I get an error message ("--unknown property: "multiplier" in undefined").

I think there are some issues with material naming, but as I said I'm new to script :)

Refresh object parameter (more info...)

hi all man and thanks for and thanks for the visit :)

I have completed another script and I'm completing the final steps (debug and more options). Now it is a problem. The script provides for the creation of a obj plane "general" called mr_plane and a map environmet. With its creation of plane (and map env), I active every spinner etc .. because I want it to be created first. Now If I close the rollot and re-open it, the spinner ecc are desabled. I know many ways to refresh parameters ecc, but are now bogged down..

My question is:

Press Select All in SME.

In the SME menu, is there a way to press.

Select>Select All

 

Using:

actionMan.executeAction 369891408 "40063" /* SME: Select All */

 

is not really what Im after as it requires the SME to be open.

Basically the fn I want overall is to, select the nodes and then hide unused nodes.

Thanks.

Use Base64 DotNet Image Encoder for buttons with alpha

Is it possible to use Base64 DotNet Image Encoder http://lonerobot.net/?p=314
in connection with http://www.scriptspot.com/3ds-max/tutorials/maxscript-image-button-bmp-l...

so that I could encode both - image and alpha and call functions for both images?

logo.images = #((StringToImage img_logo), (StringToImage img_logo_alpha), 1,1,1,1,1 )

for example inside this code (by barigazy)

rollout testRoll "LOGO"
(
	--if you want to convert image to string see these link: http://www.scriptspot.com/3ds-max/scripts/base64-dotnet-image-encoder

pivot

I know there are a lot of scripts for centering of the object pivot point, but it is so confusing which of them to download and use! I use now only 2 options putpivotcenter(SHIFT+P) and putpivotbottom(CTRL+P) from soulburnscript! But putpivotbottom doesn't put the pivot on the bottom if for example I created the object(let's say a box) in the front view, for example!

May be you could advise any that really work and easy to use! Thx friends!

Batch Export .MAX files to Open Collada .DAE

Hello everyone !

I need to batch export a lot of MAX files included in many folders (about 100 folders !) to OpenCollada DAE format, and save them into the same folders.

I tried some "batch export" MAXScripts, especially Batch It Max but none does what I want :(.

MASS Batch EXPORTER (http://www.scriptspot.com/3ds-max/scripts/mass-file-exporter) seems to fit the best, but I still can't make what I want.

MY Objective is just to select the folders and the script does it all on his own.

Can someone help me please ? Thank you all

currentTime on spinner

Hi guys

I have an issue to get the currentTime in real time while playing an animation in a spinner.

I can easily get the CurrentTime in a spinner like this:

spn_CT.value = currentTime

but this way it's not in real time while playing an animation.

If anyone have an idea, thanks a lot :)

MaxScript to batch render with automatic texture changes

Hi!

I have a scene with a single cube, and I need to render (and save) pictures of this scene hundreds of times, each with a different texture (diffuse bitmap) on the cube. The bitmap textures are numbered from 001.bmp to 699.bmp

So basically I need a script to automatically change the diffuse bitmap texture of a single material (Material 01), then render the scene to an image file, and repeat for all the textures.

Is it possible to write such a script? If yes, would anybody be kind enough to write it, or at least point me to a resource that might help?

Thanks in advance :)

Trying to find a bounding sphere.. doing something wrong, but can't figure out what

Okay, I've been competely unable to find a Maxscript for finding an object's minumim enclosing sphere (bounding sphere), so I'm trying to write my own.

The basic concept is:

1) Start with the first few points of an object

2) Make spheres based on their positions (i.e. either from between 2 points, or at the circumcenter of a triangle formed by 3 points).

3) Keep the smallest sphere that still includes all of the checked points, delete the rest.