ScriptSpot

Forum topic · Scripts Wanted

small maxscript project

By uzername1 · 2011-03-09

Description

Hello people,
I wonder if someone could write a maxscript that makes the actual numerical information for position, rotation, and scale changes appear as renderable information on the screen as it happens? I think it would be kind of like a spinner in action. I want to see the actual numbers change in corespondence with the object changes, all as part of the renderable scene.
EW

Comments (9)

this should work

Graph · 2011-03-11

-make a dummy
-make that dummy a child of the sphere
-in some pos controller put a scripted one that gets the transforms of the sphere and sets the .text of the text splineObject accordingly

uzername1 · 2011-03-12

Thanks Raphael. Good stuff!

I'm trying to piece the responses together to find the best way to move forward. Thanks again!

EW

This only works with one object

br0t · 2011-03-10

I once made a text object that showed the current frame number. I quickly converted that into something that may be helpful.

Merge the two objects inside the attached file into your scene, align and link the red sphere to your animated object. The text object will show the pos/rot/scale of the sphere and will update when you move the timeslider. You can move the text object anywhere you want. Dunno if thats what you were asking for, its rough...

Cheers

Attachments

uzername1 · 2011-03-10

Wow, looks good! Little by little it's coming together. Thank you all so much...I wish I had something to give in return!
EW

uzername1 · 2011-03-10

Yes, I think that is it. I have included a short movie file that shows what I am looking for. It was originally done in After Effects, but I'd like to do it in Max.

Attachments

JokerMartini · 2011-03-10

Only downside is that you can not key the EditText field of a Text object......

Get you started

JokerMartini · 2011-03-10

--1. Select Object First
--2. Select Text Object Seconds
--3. Run Script
if selection.count == 2 then
(
TargetObj = selection[1]
TargetTxt = selection[2] -- Text Object
TargetTxtBase = selection[2].baseObject -- Base of Text Object

TargetTxtBase.text = ("Pos: " + (TargetObj.pos as string) + " Rot: " + (TargetObj.rotation as string) + " Sca: " + (TargetObj.scale as string))
)

just

JokerMartini · 2011-03-09

Make a Text object and you could just script it to covert the pos,rot,sca information to a string and use it in the edit text field of the Text obj.

maxscript

uzername1 · 2011-03-09

Hey thanks! I'll give that a try. Very kind of you.