PDA

View Full Version : see values less than 0.001


parakyl
09-11-2009, 04:31 PM
I haven't learnt a thing about Mel, and can't find this super basic answer without swimming through way more advanced examples online.

I'm not sure if this should be in the scripting area, but figured mel should have a way to just print the full number in any box?

ex. I scaled an object way down past the 0.001 size, it displays 0.001 in the attribute editor but it's rounding up, it's definetly smaller than that since I can scale up and down a bit and it doesn't change.

How can I view what that number really is?

ie. script editor: print objectname scale....?

wdavidlewis
09-11-2009, 06:26 PM
If you want to get the values in script (or from the script editor), use the getAttr command.

For example, if you have a pCube1 object, you can get the x value of it's transform by typing:

getAttr "pCube1.tx"

That will show you the full precision value.

Also, you can increase the precision in the channel box display. In the Channel box, go to Channels->Settings->Change Precision... and enter the precision you want. I think it defaults to 3. I usually set mine at 6.

I couldn't see a similar setting for the Attribute editor.

--- David

parakyl
09-11-2009, 07:45 PM
ah ha! the channel thing worked perfectly, thank you very much!

and ill file that mel tip away for when i get more in to scripting, thanks for that as well :)

CGTalk Moderation
09-11-2009, 07:45 PM
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.