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 ..

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!!!

Select object by user defined properties

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

select $mybox

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 ?

trouble with lights

I am placing a target light in my scene with a simple maxscript script.

I have set the light "enable" to "on" but the light won't turn on unless
I manually open the modify panel and check the "light type" "on" button.

Would like to do this with maxscript.

Any help would be appreciated.

hi i want to do this operation on multiple selected objects

hi i want to do this operation on multiple selected objects

$.pos.controller.Path_Constraint.controller.follow = on

It operates on a single object , but with a multiple selection says
- Unknown property: "pos" in $selection

what should I do?

thanks for your time

Syndicate content