Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

currentUnit command error

jayantbhatt07
Advocate

currentUnit command error

jayantbhatt07
Advocate
Advocate

Hi got this command from autodesk blog but it dosent' work. Got to orthographic view and run this command. Any Idea?

 

currentUnit -linear "in";
0 Likes
Reply
Accepted solutions (3)
724 Views
7 Replies
Replies (7)

mspeer
Consultant
Consultant

Hi!

 

What error message do you get?

Here it works.

If there is no error message, then i guess changing units has more impact on your scene than you expected.

You may need to adapt some settings when changing units.

0 Likes

jayantbhatt07
Advocate
Advocate

Hi thanks for your reply. Actually when I run this command its is changing the unit  CM to INCH but it is not changing the grid size.

0 Likes

jayantbhatt07
Advocate
Advocate

currentUnit -linear "ft";
grid -d 5 -sp 5 -s 12;

 

 For other users.

ft = foot

cm = centimeter

 

0 Likes

mspeer
Consultant
Consultant
Accepted solution

Hi!

 

That's correct, if you want different settings for the Grid you have to change this manual.

0 Likes

jayantbhatt07
Advocate
Advocate
Accepted solution

Hi I was messing with the maya found headsupdisplay command thats really cool. I found one command on internet which shows time inside maya viewport ( Very cool feature according to me) but it is not updating automatically I have to update it manually. Is that possible it should work automatically? Like update time.

 

Thank you for answering my so many posts. 🙂

 

COMMAND

 

headsUpDisplay
-section 8
-block 0
-label "Current Time:"
-command "date -time"
-event "timeChanged"
HUDTime;
headsUpDisplay -refresh HUDTime;

0 Likes

mspeer
Consultant
Consultant
Accepted solution

Hi!

 

timeChanged reacts to time changes in the Maya scene and not of the system time.

The command that comes closest to what you may need is "idle" or "idleVeryLow" if you want to make sure not to block anything.

(As long as you are editing something you will not look at the clock anyway)

 

Example:

headsUpDisplay
-section 8
-block 0
-label "Current Time:"
-command "date -time"
-event "idle"
HUDTime;

 

 

0 Likes

jayantbhatt07
Advocate
Advocate

Hi,

Thank you so much for reply. you are replying my posts since 2016 🙂 . Autodesk should give you man of the year. 

🙂 

0 Likes