[Closed] paramWire with delay can it be done ?
Im using this bit of code below to make one objects height follow a master object.the script works fine .
paramWire.connect Masterobject.baseObject[#Height] SetToObject.baseObject[#Height] “Height”[size=2])[/size]
[size=2][/size]
[size=2][/size]
[size=2]but what I would like to know is , how can I add a varble delay to this ? something like this [/size]
[size=2][/size]
[size=2]delaytime = 25[/size]
[size=2][/size]
[size=2]paramWire.connect SetToObject.baseObject[#Height] “Height”[size=1][size=2]) = [/size][/size][/size][size=2]Masterobject.baseObject[#Height] at thisframe + delaytime[/size]
[size=2][/size]
[size=2]so in this case SetToObjects height will be the same as Masterobjects height 25 frames from the frame the paramWire ran .[/size]
can this be done using the paramWire ? or would I need to use script controllers if so Im a even more stuck as Ive never use these before . anyway thanks for reading
[size=2][/size]
[size=2]any help would be great thanks [/size]
[size=2]
[/size]
Best bet would probably be a script controller. Create a New Variable (ex Height), Tick offset: -4000 (there are 160 ticks per frame, so 25*160 = 4000, and – since you want it delayed), Select the Variable Name, Assign Track: MasterObject.Height, Expression: Height (this would be whatever the Variable name you created was).
Good Luck,
-Eric