Tagged 'ScriptSpot How To'

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.

Cycle through objects in loop

I can not figure this out by myself. banging my head for 2 days now.
Basically it is a path follow with boxes as path. I hope I can explain correct.
I want object called mover to go over this path.
If box_001 is selected the object mover is on the same place as box_001
On press but_up pressed
box_002 gets selected and the mover.position = box_001 then mover.position = box_002 and adding key to time line + 5
and so on..

I am not sure how to achieve this cycle in objects.(From box_001 to box_120 )
I tried braking up the name extension and replace the last 3 digits

Maxscript acces to Wall

Hello to all. Recently i have been doing a script that needs to get acces to the AEC wall object. I need to get acces to the 'pick spline' option in keyboard entry option from the modify panel to assign a previously created spline , but i have no idea on how to get it cause it doesn't seem to have a straightforward way to get into it. I can use the 'startObjectCreation Wall' to start creting the wall, but after that, i don't know where find a method to attach the spline right into it.

Any ideas about that one?..

Thanks in advance!!!

Distribute grouped objects along edges

hi. I'm stuck at trying to distribute grouped objects along a given objects edges. At first I thought it was similar as with the case of vertices but it turned out to be quite complicated.
Hope I was clear. Anyones help highly appreciated.

Crease Line Display For Turbosmooth

Can anyone teach me how to write the script for max, so that i can see the color display for my crease line that i already set = 1 for my Geometry ?

Unable to Apply UVW Map on multiple Selection with simple MaxScript

Hi all,

I've recently created a maxscript to apply a 10x10x5m box UVW Map on objects.
I copied the code from the maxscript listener after applying it manually on an object. Edited some of the information to better organize it in my CUI. The code goes like this

macroScript UVW10x10x5m
category:"1Essential Scripts"
toolTip:"UVW10x10x5m"
Buttontext:"UVW10x10x5m"
 
(
	modPanel.addModToSelection (Uvwmap ()) ui:on
	$.modifiers[#UVW_Map].maptype = 4
	$.modifiers[#UVW_Map].length = 10000
	$.modifiers[#UVW_Map].width = 10000
	$.modifiers[#UVW_Map].height = 5000
)
Syndicate content