Tagged 'ScriptSpot How To'

Help

Where can i find my "favorite" scripts?

Help need math concept for good hedge orientation

Hi,
I'm working on script for creat e strip(like Sweep tool) with tow splines constain.
but my problem is the placement of my knots on this splines for create an uniform
mesh. I using lengthInterp for placing my knots but when i have curve in my tow spline
i've bad result can you give me the good way for have a good interpolation of my knots on splineshape.

in first the script part TowSplineToMesh.ms
and the second file show the good way for me.

Tanks.

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
(

how to access vray Distributed rendering setting window ?

i know this "renderers.current.system_distributedRender" but i want to know how to access vray Distributed rendering setting window ?

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?

position/rotation script controller

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

As Tough As You Are

When Red Wing boots were first don industry, the location of redwing boots online, Minnesota was populated with folks riding horseback! Thus, the boots were built to endure even the harshest varying weather condotions and the majority rugged outdoor activities.

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.

 

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

Syndicate content