paramwire question

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 05 May 2008   #1
paramwire question

i´ve got a little problem to do paramwire in maxscript...

i have a $box with a check box inside CAttribute and i want to control the value of a weight rotation script from $cylinder with it..........

my try :



     s1 = selection[1]
     s2 = selection[2]
     paramwire.connect s1.modifiers[1].T_Delay[#_active] s2.rotation.controller.weight[#3]
     "if (_active) == 0 then 0 else 1"

-- Type error: array index must be positive number, got: , got: #3


     s1 = selection[1]
      s2 = selection[2]
      paramwire.connect s1.modifiers[1].T_Delay[#_active] s2.rotation.controller[#Weight__Rotation_Script] "if (_active) == 0 then 0 else 1"

-- Runtime error: connect requires subAnims

what am i doing wrong ?

*note: my tracks are (1 Frozen_rotation, 2 Zero_Euler_XYZ, 3 Rotation_script)

thks.
__________________
Website
Twitter
Facebook
Google+

Last edited by Polimeno : 05 May 2008 at 12:19 AM.
 
Old 05 May 2008   #2
please,
what should i have to do ??
__________________
Website
Twitter
Facebook
Google+
 
Old 05 May 2008   #3
where it complains about wanting a positive number (more precisely, a value >= 1), your code is using "weight[#3]" - use "weight[3]" instead if you want the third item in the weights.
 
Old 05 May 2008   #4
didn´t work either.....same problem....
=/...




s1 = selection[1]
  s2 = selection[2]
  paramwire.connect s1.modifiers[1].Test_active[#active] s2.rotation.controller.weight[3]
  "if (active) == 0 then 0 else 1"


-- Runtime error: connect requires subAnims


please,
what is the tricky to do it right ??
__________________
Website
Twitter
Facebook
Google+
 
Old 05 May 2008   #5
well, as the error says, one or both of the parameters you're trying to wire is not specified as a subAnim.

I'd say the weight one; that returns the actual weight value.. you want to access the controller for the appropriate weight instead;


paramwire.connect s1.modifiers[1].Test_active[#active] s2.rotation.controller.weightS[3]
 
Old 05 May 2008   #6
Best thing to do is use getSubAnimNames to find the path that you need to the tracks. Try this...

getSubAnimNames $
#(#visibility, #Space_Warps, #transform, #Object__Sphere, #material, #Image_Motion_Blur_Multiplier, #Object_Motion_Blur_On_Off) --Returns

getSubAnimNames $[#transform]
#(#position, #rotation, #scale) --Returns

getSubAnimNames $[#transform][#position]
#(#Frozen_Position, #Zero_Pos_XYZ, #available, #Weights) --Returns

getSubAnimNames $[#transform][#position][#Weights]
#(#Weight__Frozen_Position, #Weight__Zero_Pos_XYZ) --Returns

getSubAnimNames $[#transform][#position][#Weights][#Weight__Zero_Pos_XYZ]
#() --Returns


Any one of those is a valid paramWire parameter. I tend to do it that way more these days as I know the names of the tracks usualy.
__________________
Paul Neale
http://paulneale.com
 
Old 05 May 2008   #7
still have PROBLEM.....

EDIT:

Paul,
tried it :


     getSubAnimNames $[#transform][#position][#Weights]
     #(#Weight__Frozen_Position, #Weight__Zero_Pos_XYZ) --Returns
     
     Listener :
     #(#Weight__Frozen_Position, #Weight__Zero_Pos_XYZ, #Weight__Spring)
     #(#Weight__Frozen_Position, #Weight__Zero_Pos_XYZ)
     OK
      



      fromObj = selection[1]
      toseL = selection[2]
      paramWire.connect fromObj.modifiers[1].Test[#active] toseL.pos.controller[#Weight__Spring] "if(active) == 0 then 0 else 1"
      


-- Runtime error: connect requires subAnims

why still wrong ???
oO?
__________________
Website
Twitter
Facebook
Google+

Last edited by Polimeno : 05 May 2008 at 08:23 PM.
 
Old 05 May 2008   #8
help, pleasE ?

EDIT:

nobody ?
__________________
Website
Twitter
Facebook
Google+

Last edited by Polimeno : 06 June 2008 at 07:06 PM.
 
Old 05 May 2008   #9
..

delete, please...
__________________
Website
Twitter
Facebook
Google+

Last edited by Polimeno : 06 June 2008 at 06:43 PM.
 
Old 05 May 2008   #10
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:18 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.