Wire Params

Become a member of the CGSociety

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

Thread Tools Display Modes
  07 July 2003
Wire Params


Im writing a script and I want to be able to assign a variable to a specific property of the selected mesh.

im selecting the mesh using pickbutton and i managed to get the WireParams dialog to appear but i couldnt return the, string i guess?

i was hopping it would return, for example, "$sphere01.position.x" and then i can assign my value to the x position of the sphere...

is this the way to go about it or is there another way?

  07 July 2003
ok, i managed to, from a picked object, use getPropNames to add the properties to an array... BUT, these do not include the controllers (position, rotation, scale)

i then added the array to a dropdown so i can select from that, all good, i do need the properties but i ALSO need the controllers... any ideas how to get them? (looking madly thru help files as i type)
  07 July 2003
I think that .subanim[ idx ]
may be a better way to do what you are trying? I forget tho...

Also you can do .controller
$mySphere.position.x.controller ;

should returns "bezier_xyz" or something like that.
Michael B. Comet - comet@comet-cartoons.com
www.comet-cartoons.com - Code Monkey
www.pixar.com - Pixar Animation Studios
  07 July 2003
yeh, but im actually trying to select the controller by not knowing whats there... what ive got works almost... just doesnt add the position, rotation and scale to the list
  01 January 2006
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
Society of Digital Artists

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

All times are GMT. The time now is 01:29 PM.

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