Notifications
Clear all

[Closed] Scripted Plugin trimesh properties

if we take your screwexample it errors if you try and create it with

screw()
1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

in domesh function has to be added the first line:


if not iskindof curve bezier_float do params.setProfile update:off

still throws an error when it get to

c = ui_profile.curves[1]

forget about previous solution. there is the right one. add code below to the plugin body:


	fn defaultCurve =
	(
		curve = bezier_float()
		addnewkey curve 0f
		addnewkey curve 1f
		k = addnewkey curve 0.5f
		k.value = 1
	)
	on create do defaultCurve()


yep that fixed it, thanks denis nice to have that option again

Page 2 / 2