Re: [Maya-Python] Re: some Mel toughts

2017-08-19 Thread yury nedelin
I am curious , why not python ? Yury On Sat, Aug 19, 2017 at 2:46 PM, Cedric Bazillou wrote: > Like the other people said its a scripting language, and your variable are > strongly typed ( so what is the point of whining :its normal to be confused > when to start using something new...) > most o

Re: [Maya-Python] Python Noob question

2017-08-19 Thread Johnathan Scoon
Thanks Justin, you're a rock star! On Saturday, 19 August 2017 18:10:40 UTC-4, Justin Israel wrote: > > > > On Sun, Aug 20, 2017 at 1:51 AM Johnathan Scoon > wrote: > >> Hey thanks haggi, that definitely works. I'm still curious if there is a >> way to make a list of ascending objects into a ran

Re: [Maya-Python] Python Noob question

2017-08-19 Thread Justin Israel
On Sun, Aug 20, 2017 at 1:51 AM Johnathan Scoon wrote: > Hey thanks haggi, that definitely works. I'm still curious if there is a > way to make a list of ascending objects into a range? Or do you think this > would not ever be necessary? > It could be neccessary given the circumstances. The foll

[Maya-Python] Re: some Mel toughts

2017-08-19 Thread Cedric Bazillou
Like the other people said its a scripting language, and your variable are strongly typed ( so what is the point of whining :its normal to be confused when to start using something new...) most of what you said for string manipulation has an equivalent in mel ( just need to learn how the docs ar

Re: [Maya-Python] Python Noob question

2017-08-19 Thread Johnathan Scoon
Hey thanks haggi, that definitely works. I'm still curious if there is a way to make a list of ascending objects into a range? Or do you think this would not ever be necessary? On Saturday, 19 August 2017 09:43:26 UTC-4, haggi wrote: > > At a first glance, you do not need the BlockList at all be

Re: [Maya-Python] Python Noob question

2017-08-19 Thread haggi
At a first glance, you do not need the BlockList at all because you so not use the contents. You only use it to get a number of elements to iterate over. You would get the same result if you simply do a: for i in range(10): cmds.duplicate() Just in case you want to give the new object

[Maya-Python] Python Noob question

2017-08-19 Thread Johnathan Scoon
Hey guys, I'm just playing around with simple for loops trying to get my head around it. I wrote a script that creates a series of cubes and places them a certain distance apart on the translate X axis. from maya import cmds BlockList = ("BLOCK", "BLOCK1", "BLOCK2", "BLOCK3", "BLOCK4", "BLOCK5"