Notifications
Clear all
[Closed] Incompatible types: -2.121, and Controller:Bezier_Float
May 01, 2012 3:29 am
Trying to change a splines viewport radial angle using a rollout spinner but cant seem to get it to work.
rollout splineedit "Spline Edit"
(
local newrotation = bezier_float()
spinner therotate "Rotation" range:[-360,360,0] align:#left type:#float scale:0.01 controller:newrotation
on therotate changed val do
(
$.render_viewport_angle += newrotation
)
)
createdialog splineedit 130 30 100 100
returns – Incompatible types: -2.121, and Controller:Bezier_Float <<
“-2.121” is the current angle of the spines viewport radial angle.
Not sure why its incomaptible.
Please anyone know why this wont work?
1 Reply
May 01, 2012 3:29 am
nevermind I figured out what i did wrong ^^
rollout splineedit "Spline Edit"
(
local newrotation = bezier_float()
spinner therotate "Rotation" range:[-360,360,0] align:#left type:#float scale:0.01 controller:newrotation
on therotate changed val do
(
$.render_viewport_angle += val
)
)
createdialog splineedit 130 30 100 100
needed to change
$.render_viewport_angle += newrotation
to
$.render_viewport_angle += val
Sorry, I’m learning.