Tagged 'ScriptSpot How To'

Export spinner values of an object attached to a path for all frames in a txt-file

Hi,
can anyone help me, I need to export the Position (in percent) of an object which is attached with a controller on a path for every frame in the scene as a textfile e.g.

hubaberle

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

help MaxScript for rig system

hey guys, i have a small problem with a script that i am trying to do
the idea is to make a script that can create a rig for any characters (standard rig for people ) with a few clicks ... so the problem is when i try to align a bone to a dummy it aligns the position but not the rotation.

you will find below a screenshot of the result i am getting
by the way this is my first time in maxscript and here is the code :

maxops.affectchildren=false

select $Dummy001
aa = $.rotation.x
bb = $.rotation.y
cc = $.rotation.z
a = $.pos.x
b = $.pos.y
c = $.pos.z
select $Bone001

dotNet listview and checkboxes

This is a snippet of code where I want to control the checkboxes by multiple selections in the listview itself and hitting the checkbox (whether it is checked or not) to select / de-select them accordingly, trouble is when I do this it doesn't do them in one but for each item.

Basically, if I shift and select the items and check off the box the value counts down in real-time for the countLabelVal text.

Is there a dotNet way of doing this?

on lv ItemChecked do part of the code below is the trouble maker.

How to delete a rollout stack in attribute holder?

hi there . i'm new here and sorry for my bad language if it is

ihave this one
----------------------------------------------------------------------
Reset_position_attributes = attributes custom_Attributes
(
rollout ResetPrmRollout "Reset Position"
(
button ui_resetpos "Reset Position" width:160 height:30

on ui_resetpos pressed do
(
macros.run "Animation Tools" "TransformToZero"
)
)

rollout ResetPrmRollout2 "Reset Position2"
(
button ui_resetpos2 "Reset Position" width:160 height:30

on ui_resetpos2 pressed do
(

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

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

State Sets Compositor

Hello!
I record a lot of scene states for layered rendering.
How to open the compositor window through a max script and specify the path of the PSD and run the render in the PSD?

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?

error "unknown property: ''filename'' is undefined!"

I have a script that converts PhisicalMaterial to MSFS2020 FlightSim material. But it gives me error "unknown property: "filename" is undefined!" in this part:

on PM pressed do
(
if (queryBox "Convert all Physical Materials to FlightSim Material ?\nNot undoable !" title:"Materials convertion" beep:false) then
(
for mat in (getClassInstances PhysicalMaterial) do --pour tous les matos
(
new_FSmat = FlightSim()
new_FSmat.basecolorTex = mat.mapM1.filename
if mat.bumpmap != undefined then new_FSmat.NormalTex = mat.bumpmap.normal_map.filename

Syndicate content