Tagged 'ScriptSpot How To'

Select last create object

Hello

How can I select last create object, For example i copy new object. Or I create object from detach.
Thanks in advance

State Sets Compositor

Hello!
I record a lot of scene states for layered rendering.
How to open the compositor window through a max script and specify the path of the PSD and run the render in the PSD?

dotNet listview and checkboxes

This is a snippet of code where I want to control the checkboxes by multiple selections in the listview itself and hitting the checkbox (whether it is checked or not) to select / de-select them accordingly, trouble is when I do this it doesn't do them in one but for each item.

Basically, if I shift and select the items and check off the box the value counts down in real-time for the countLabelVal text.

Is there a dotNet way of doing this?

on lv ItemChecked do part of the code below is the trouble maker.

Vray caustics

Looking for a way to turn Vray caustics on and off with maxscript.

thank you in advance

Help

Where can i find my "favorite" scripts?

Relax Tool Dialog Amount parameter

Hi there,
is there anyone who can tell me what's wrong with this code?

actionMan.executeAction 2077580866 "40136" -- Unwrap UVW: Relax Dialog
$.modifiers[#unwrap_uvw].setRelaxAmount 1.0

I would like to create a button that opens the relax dialog with the parameter set to "1,0" while I'm working with the unwrap editor ...
The listener returns me OK but nothing happens in the dialog ...
except the second time I run the script after manually closing the relax tool dialog ...
very usefull if someone tells me how to close the dialog via script ...

Thanks to anyone who can help ..

Select object by user defined properties

How to select object by user defined properties?
example:
name = mybox

select $mybox

Names into array to update multilistbox

I'm trying to evaluate if some materials have some options on or off, until there the script works and it prints the name of the materials that im evaluating, "print m.name". But I need to update a list box with that m.name to show the result in a rollout, could not find any solution to that, the solutions i found its using "collect" and works before getting the names from the meditmaterials, but i already have them, so how i can add it to the listbox item:#()

Thanks in Advanced for your help.

 

Object Plugin Maxscript Slice

I am trying to write a object plugin. Is there a way how you could slice a picked object in a Maxscript Create Object plugin. It seems I can't use " .slice' function at all. I wrote already a own slice function but the performance is not that good as the slice function from 3DS Max.
Is there anyway how I could use modifiers in a create object plugin (Simple Object)
Thx anyway

How to rotate cat bone pivot only?

After export my CAT character to unreal engine 4 with shared bone settings, when playing animation my character will get missed up, for bones of target skeleton bone has different pivot rotation than my CAT character(see attachment). after further inspection, I realized the pivot rotation of nearly every single bone is mismatched.

The problem is, I can't simply rotate the pivot of CAT bone, the bone will rotate with the pivot. I'd like to know if there is a way to change the CAT bone pivot via max script, please help me.

Syndicate content