Message 1 of 4

Not applicable
06-04-2020
01:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Im trying to setup a script wich will create a float_script controller for object rotation, but I have some problem with addTarget option. So I have a cylinder wich will have the script on x rotation, and I have a point helper wich is path_constrainted to a line, what I need is to addTarget of the percent of that point helper, my code look like this :
fs = float_script ()
o.rotation.controller.X_Rotation.controller = fs
fs.addTarget "Percent" mainCnt.position.controller.Percent
When I evaluate this script it throws me a error:
Runtime error: IScriptCtrl::AddTarget - Target needs to be object or subAnim, got: 0.0
Anyone can help?
Solved! Go to Solution.