Message 1 of 16
Decimal places
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need to create some text that automatically changes with the angle of an object, so I modified the script in the Maxscript tutorials to the following:
It works great -except that I don't want any decimals. Is there a way to do round the numbers?
Thanks!
TM=exposetm name:"ExposeAngle"
t=text name:"ControlledText"
t.baseobject.renderable=true
theCtrl = float_script()
theCtrl.addNode "TheText" t
theCtrl.addNode "ExposeAngle" TM
theCtrl.SetExpression "TheText.text = ExposeAngle.localEulerY as string\n0"
It works great -except that I don't want any decimals. Is there a way to do round the numbers?
Thanks!