getting rid of "e" in x,y,z coordinates


#21

Originally posted by RealThing
The problem is Maxscript lacks any number formating functions. The number it gives you is the number it gives you and if you don’t like it you’ll need to convert the number to a string and manipulate it from there. Since a string doesn’t care if it’s a number or letter it’s certainly doesn’t know what scientific notation is. So this type of reformating is not easy or clean.

So there are text functions. Then it doesn’t matter as long as you can run a logic statement and check if its a number character. Keeping it clean may prove to be a challenge but just because its possible it will be difficult doesn’t mean its not worth doing. Beyond that a machine doesn’t actually understand what anything it just does what its told.


#22

Maxscript isn’t alone in having poor formatting support. Maya’s MEL has no sprintf fuction and it is extremely frustrating having to bodge something together yourself.

If you need to manipulate the numbers then this is a problem, but surely you are just dumping them straight out as blind data?

Simon


#23

No I was just brainstorming how artistx could go about doing what he wanted to do. I will take this moment to point out though that scripting is just scripting. :smiley:


#24

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.