Page 1 of 1

Adding a BezierSpline to the Center of a Transform node

PostPosted: Sat Jun 09, 2018 7:37 pm
by Kuntal Majumder
The guide says, the syntax is
Code: Select all
Merge1.Blend = BezierSpline({})
and for using it with a point we have to use Path{}, but the above method combined with Path{} results in a
Code: Select all
attempt to call global 'Path' (a nil value)
so I tried using
Code: Select all
transform:AddModifier("Center","BezierSpline")
though it works for numbers it doesn't work for Path, I went through the scripting guide but there was no example which implemented BezierSpline with Path. What would be the proper syntax?

Re: Adding a BezierSpline to the Center of a Transform node

PostPosted: Sun Jun 10, 2018 12:35 pm
by Kuntal Majumder
Seems like I was using the wrong modifier I should be using the XYPath Modifier

Code: Select all
transform:AddModifier("Center","XYPath")