Tagged 'ScriptSpot How To'

need help please

hi, i have a lil' script and is not working and i wish to know what i have done wrong please

tha script:

for m in meditmaterials[2] do
(
if m.opacityMap != undefined do
(
m.opacityMap = undefined
)
)

and i've got this

-- Error occurred in m loop
-- Frame:
-- m: undefined
-- Unknown property: "opacityMap" in undefined
OK

and sorry if i post this here but i don;t know where

thanks in advance

nurbs curves

Tried some of the methods for nurbs curves, such as $.EvalPos , $.evaltan,,$.numknots..etc..keep getting error message :'unknown property numknots in nurbscurve001'...etc..what's going on? How can i get an unknown property error on a nurbs curve which has those properties acccording to the documenation?

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

pick up a name from an object and put the same name in another object

starting to do programming in MaxScript and need to make a script that select an object, copy your name and transfer that name to another object. But I have a problem. I need this script to do this automatically for multiple objects in one

position/rotation script controller

how to have a bone nub to follow a transformation of a point helper?

problem whith this line "paramWire.connect c1.pos.controller[#X_Position] c2.controller[#Z_Position] "X_Position""

at first im sorry for my english, im spanish and my english is not the best.
anyway i have a problem with this line
paramWire.connect c1.pos.controller[eje1s] c2.pos.controller[eje2s] eje1f
i know that the good sentence is this one:
paramWire.connect c1.pos.controller[#X_Position] c2.controller[#Z_Position] "X_Position"

i take eje1s,eje2s and eje1f from:
/*Eje1s*/
--
case eje1.selected of
(
"X": eje1s="#x_Position"
"Y": eje1s="#y_Position"
"Z": eje1s="#z_Position"
)

--
/*Eje2s*/
--case eje2.selected of
(
"X": eje2s="#x_Position"

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

Run script on screenRedraw

Hi,

Need a bit of help -
Currently my script is updating (looping) on timer, but I'm trying to run the script on screen Redraw.
Managed to set-up Callback system, but not sure how it should call the script.
Is anybody could show a sample of layout that works on callback system?

Thanks

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

Select object by user defined properties

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

select $mybox

Syndicate content