Hello Guest it is December 07, 2019, 12:51:15 PM

Author Topic: Can soft limits be automatically on at start up?  (Read 2690 times)

0 Members and 1 Guest are viewing this topic.

Re: Can soft limits be automatically on at start up?
« Reply #10 on: December 13, 2016, 01:38:57 PM »

      mc.mcSoftLimitSetState(inst, mc.Z_AXIS, mc.MC_ON);

     mc.mcSoftLimitSetState(inst, mc.Y_AXIS, mc.MC_ON);

     mc.mcSoftLimitSetState(inst, mc.X_AXIS, mc.MC_ON);

[/quote]
Notice the capitalization!  Apparently this code is CASE Sensitive!  I did not know that.  Anytime we want to run a mcAnything() we need to add the mc to the mcAnything to get mc.mcAnything   Slowly making more sense.  Studying the LUA Scripting Guide line by line is helping to learn Lua.  Feeling like a champ right now with these one liners...

Keith

Offline DazTheGas

*
  •  750 750
  • DazTheGas
    • View Profile
Re: Can soft limits be automatically on at start up?
« Reply #11 on: December 13, 2016, 02:00:44 PM »
Video completed just uploading ;-)

DazTheGas
Theres always time for a choccy biccy

Offline DazTheGas

*
  •  750 750
  • DazTheGas
    • View Profile
Theres always time for a choccy biccy

Offline Stuart

*
  •  203 203
    • View Profile
Re: Can soft limits be automatically on at start up?
« Reply #13 on: December 14, 2016, 03:11:24 AM »
Thank you have a drink on me