PDA

View Full Version : Parameter wiring with MaxScript?


Malkalypse
05-05-2009, 06:51 PM
EDIT: Never mind, I got it. Looked through the other threads again and saw there was one where the solution involved removing [#Expose] from the script. Tried that and it worked.

----
OLD:
I've looked at a couple related threads, but still can't figure out what I'm doing wrong.

My goal here is to create a rollout with a button for wiring an object's position to an exposeTM's "local position" value (from its exposed node). What I am using is this (taken from exactly what is shown in the listener when I do this manually):

on wirePos picked tgt do
(
if tgt != undefined do
(
paramWire.connect tgt.baseObject[#Expose][#Local_Position] $.transform.controller[#Position] "Local_Position"
)
)


The error I get is: 'No ""get"" function for undefined'

CGTalk Moderation
05-05-2009, 06:51 PM
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.