ScriptSpot home

Forum topic · Scripts Wanted

small maxscript project

By Eric Wruck · 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)
Graph

this should work

-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

Reply to Graph
Eric Wruck

Thanks Raphael. Good stuff!

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

EW

br0t

This only works with one object

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
Reply to br0t
Eric Wruck

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

Reply to br0t
Eric Wruck

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

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

JokerMartini

Get you started

--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))
)

JokerMartini

just

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.