Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography


Featured Threads
  inspiration alert!!!
(36 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies)
  Maxforums.org Members Gallery
(516 replies)
  SON OF POST YOURSELF
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Loop issue with array wiring
show user profile  drdoktr
Hello,
I'm confused about my setup here. I'm trying to place and then wire an array of dummies (path constrained to a spline) to the first dummy in the array. Can anyone tell me why my script isn't working? Thanks for helping out a maxscript noob!

myArray = selection as array--selection of dummies path constrained to spline

for i in 2 to myArray.count do
(
paramWire.connect myArray[1].pos.controller[#Percent] myArray[i].pos.controller[#Percent] ("Percent+(.1*"+i as string +")")
)
read 565 times
6/14/2010 5:59:51 PM (last edit: 6/14/2010 5:59:51 PM)
show user profile  Garp
It's working for me.
You're sure all dummies in your selection have a path constraint (wild guess)?




read 547 times
6/14/2010 7:00:16 PM (last edit: 6/14/2010 7:00:16 PM)
show user profile  drdoktr
odd, I keep getting this message--and i've checked to make sure the dummies are path constrained to the same line:

-- Error occurred in i loop; filename: C:\Documents and Settings\Administrator\Desktop\test.ms; position: 96
-- Frame:
-- i: 2
-- Runtime error: connect requires subAnims



read 542 times
6/14/2010 7:09:50 PM (last edit: 6/14/2010 7:09:50 PM)
#Maxforums IRC
Open chat window


Support Maxforums.org