Hello Guest it is March 28, 2024, 09:00:43 AM

Author Topic: Can soft limits be automatically on at start up?  (Read 6049 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

*
  •  778 778
  • 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
New For 2022 - Instagram: dazthegas

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
New For 2022 - Instagram: dazthegas

Offline Stuart

*
  •  311 311
    • 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