Tagged 'ScriptSpot How To'

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

IK animation Key frames

Hello all,

I have one question about key frames and IK animation.
What is a problem ?
Lets say i have 3 planes which are linked and made IK limb solver, like arm of 2D character. When i animate helper and put key frames on time line i got only key frames for that helper. Does anyone know can I get key frames for my planes same as IK helper or any script that can change ?

Thank you so much!

Zoran

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.

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 ?

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

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"

position/rotation script controller

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

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.

 

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?