Tagged 'General Scripting'

"on Click" with label, block Max and script execution

Hello, i am looking for some help.

In the code bellow, when you clik on the label, it start a quick render.

The problem is that 3dsmax is totally blocked until the render is finished.
And its totaly impossible to stop the current render. do you know a solution ?

i seen that it's not the case with a button and "on btn pressed" .
But i have to put some img in this label, and use Mousehover function etc.... so it's why i use a label instead of a button)

Thanks you

try(destroydialog ::test)catch()
rollout test "test" width:400 height:44
(

"Select" and "select exclude" objects by name

Is there a way to select all objects, except some, by name? For example, I want to select and delete all, except objects named "important_object_001", "important_object_002", "important_object_003". How should I do this?

"type:#class" in parameter block ?

Hello.

This is a question I've posted on many forums and never got an answer.

In a scripted simpleObject plug-in, I'd like the parameters to be set to default values the first time I run the plug-in but, for some of them, to remember previous changes the next time (in the same session).

In the MAXScript User Reference, Scripted Plug-in Clauses, I've found this:

"Umlaut" in strings

Heyho,

I am loading UVs into an Unwrap modifier with maxscript, which right now only seems to be possible with a UIAccessor-Workaround, that essentially searches for the "Open"-button and presses it for me. It is slow, but still a lot faster than myself and I can do something else while it is busy. The thing that bothers me is, that on my german OS, it does not have to search for the "Open"-button, but for the "Öffnen"-button. But it does not recognize the Umlaut ("Ö") when I put it like this:

 
UIAccessor.PressButtonByName WindowHandle "&Öffnen"

"while not eof f do" but from the second line

Hi,

I would like to read an external file but not from the first line, from the second one.

Is there a simple way ?

Thanks

$.anim_offset = 30 <--- how to set random value from 1 to 100 for this animation offset value in vray proxy

Hi

when i select multiple proxy objects and click on the script button i created from maxscript listener by changing the offset animation value, it sets all proxy objects animation to frame 30, i would like the proxy obejcts to have a random animation value from 1 to 100 frame.

Thanks

$.modifiers[#MultiRes].reqGenerate Help!!!!

Hi folks,
I'm trying to apply the MultiRes modifier by script to reduce the vertex numbers for a lowpoly output, but don't work, I opened the modifer list and the modifier is there and works only if I click the Generate button. I need it automatic controlled by the script.

I'm stucked, please help a noob (me) to finish his first 3dMax script :)

my code:
...

select obj

--add modifier
modPanel.addModToSelection (MultiRes ()) ui:on

$.modifiers[#MultiRes].BoundaryMetric = on
$.modifiers[#MultiRes].baseVertices = on
$.modifiers[#MultiRes].mergeVertex = on

'Convert selected" in xRef Scenes

I like to know if it is possible to program the "convert selected" method located in the xRef Scenes dialog.

I can't find any reference to it unfortunately yet.

I like to xref my selection and re-add it again to the scene as an xref scene.

Hoping for some help. Thank you :)

'Override' option - bitmap dialog window ?

Hi guys ,
As you can see i've got a problem with the access to this 'override' option for gamma change.

I've tried to find something in 3dsmax manual first ,google it,but with no success.

Default gamma i'm using is 2.2.
There is a need to load normal maps and change it to gamma:1.0.Its a simple script to generate material and load the proper maps into it.
Fileingamma is working somehow ,but its not the way i want.Cause any transfer to different scene is giving result 2.2 again.

'region / crob / blowup' rollout back to toolbar script for 2009max

is it possible make script or something just to put that rollout back to toolbar. i use vray so dont have that rollout in render frame buffer like mentalray users

Syndicate content