Tagged 'ScriptSpot How To'

create 3d wheel deformation using script

Hi friends

i am stuck at my project end.because here i am confuse about how to create wheel deformable. anyone knows about the wheel deformation please just late me know
here is the you tube link
http://www.youtube.com/watch?v=2xmbHiQ8jBE&feature=related

Reply

Raj

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?

material creation script.

Hi,

Forgive my lazyness (actually lack of time would be better said) for not searching all of the scriptspot scripts and posts for what I am about to ask.

I was wondering... say I get lots of RGB values in an excel sheet (in gamma 2,2)from a client who wants to visualise the colors in interior scenes.

Can it be done with a script in such a way that max generates a material library and puts the corrected gamma 2.2 color values from the table in the diffuse slots for the materials?

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"

Use qsort method for sorts array

Good day.

In scene present $Camera01 and points helper array.[Point01,Point02,....]
I want construct spline from points array, and use next script
------------------------------------------------------------
points = $Point* as array
fer=#()
for r=1 to points.count do
(
in coordsys $Camera01 ff = points[r].pos
append fer ff
)
fn compareFN v1 v2 =
(
local d = v1[2]- v2[2]
case of
(
(d < 0.): -1
(d > 0.): 1
default: 0
)
)
qsort fer compareFN
ss = SplineShape pos:fer[1]
addNewSpline ss
addKnot ss 1 #corner #line fer[1]
for r=2 to (fer.count) do
(

Help the material manager

I am a graphic designer/animator and I think that the material manager script will help me tremendously, but it doesn't work right on my system. I have a 64 bit system with Max 2010 64 bit. When I open it says (--Unkown property: "count" in undefined). After that it shows the Loading Materials floater, but nothing ever happens. Does anyone know how to fix this? Thanks in Advance

interface design question

HI Guys
i have a question about max script, i need to know if its possible to, with max script have the max interface allow a complete redesign, basically allowing me to remove all the menus, command panels, animation controls at the very bottom of the screen and be left with essentially a totally blank canvas to which i can then build the interface i need.
Hope someone can help
Michael

exported selected to dwg or iges file in maxscript?

does anyone how to export selected to dwg or iges files in maxscript ?
because i searched through the internet and i found there is a script related to this
but it is solely export selected to 3ds file..

any help is greatly appreciated
cheers

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

How to: Post code snippets

You can post code snippets by using a bracketed code tag either [] or <>. However, due to how the code formatting works it cannot be used in conjunction with the ScriptSpot rich-text editor.

So, to post code I'll use the [ code ] tag to start the highlighter and the [ /code ] tag to end it (spaces added so it would display tag - don't use spaces).

macroScript RenameThem category:"HowTo"
(
 rollout rename_rollout "Enter New Base Name"
 (
  edittext base_name ""
  button rename_them "RENAME SELECTED OBJECTS..."
  on rename_them pressed do
  (
Syndicate content