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


Featured Threads
  inspiration alert!!!
(37 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

Help with a script controller if you can :)
show user profile  DannyMax

This first scripted controler (height)works fine but the second one X_postion is not working could someone show me the right way to do this ? I think I just got something round the wrong way , Im not sure but I cant get the box i to follow the controlobject any help would be great guys thanks :)



read 231 times
1/22/2012 1:34:34 PM (last edit: 1/22/2012 1:37:49 PM)
show user profile  Garp
Danny, the code is missing one line. The wrapping macro adjusts the size of the textbox automatically. Use it.
If I'm saying that it's mostly because your error seems to be precisely in the bit that's not showing ;)

It looks like you're assigning a position (a Point3 value) to a coordinate (a float value).
Just add .x after pos and you should be fine (unless there's something else).




read 221 times
1/22/2012 2:07:43 PM (last edit: 1/22/2012 2:10:55 PM)
show user profile  DannyMax
Thanks Garp the macro is working well , its my code , Im not sure where to place the .x , I got this working as a wire script but I wanted to add a delay expresion and was told I should use a scripted controler so thats why I'm playing around whit this, must say its great fun :) but I keep getting stuck with bits along the way ...




read 213 times
1/22/2012 2:29:44 PM (last edit: 1/22/2012 2:29:44 PM)
show user profile  DannyMax
ok I added the x. and Im getting this error

Unknown property: "x_Position" in $Box:Box002 @ [-133.643265,0.000000,0.000000]

going to have a read up and see if I can work out whats going on :)




read 209 times
1/22/2012 2:36:11 PM (last edit: 1/22/2012 2:36:11 PM)
show user profile  Garp
I was talking about the macro for pasting the code here. Obviously it's not working as the text window is too small and I had to copy/paste it to notepad to see what's missing.

The last string (the one you assing to i.X_position.controller.script) should be
" at time (F - " + TDelay + ")controlobject.pos.x "
Also TDelay should be a string. If it's a numeric value, use TDelay as string in both scripts.




read 207 times
1/22/2012 2:39:54 PM (last edit: 1/22/2012 2:40:19 PM)
show user profile  DannyMax
thanks for the help Garp , as I said I did add the .x but Im still getting that error, TDelay is a string and its woring on the other bits of code so I know its just this bit .

i.X_position.controller.script = " at time (F - "+ TDelay +") controlobject.pos.x " )




read 201 times
1/22/2012 2:47:00 PM (last edit: 1/22/2012 2:47:00 PM)
show user profile  Garp
Try with i.position.x_position.controller.




read 195 times
1/22/2012 3:42:25 PM (last edit: 1/22/2012 3:42:25 PM)
show user profile  DannyMax
thats fixed it thanks garp :)




read 194 times
1/22/2012 4:11:53 PM (last edit: 1/22/2012 4:11:53 PM)
#Maxforums IRC
Open chat window


Support Maxforums.org