Notifications
Clear all

[Closed] Quick question about Dialog and custom attributes

I searched the forum but couldnt find what i’m looking for
Is there a way to link a custom attribute value to a slider inside a custom attributes

i.g.: I have this dialog that is a copy of a rollout stored inside a custom attributes and I’d like to link both together.

Linking the dialog to the CA is easy but I have no clue about how to do the opposite.

Should I look into a solution made with callbacks or there’s another way to do it in maxscript?

2 Replies

if value is animatable you can set spinner (or slider) controller for both dialog and ca…

ca = attributes ca 
(
	parameters params rollout:params
	(
		value type:#float ui:ui_value
	)
	rollout params "Parameters"
	(
		slider ui_value type:#float width:150
	)
)
delete objects
b = box isselected:on
custattributes.add b ca baseobject:on

rollout params "Parameters" width:180
(
	slider ui_value type:#float width:150
)
b.baseobject.ca[#value].controller = bezier_float()   
createdialog params
params.ui_value.controller = b.baseobject.ca[#value].controller 

that’s exactly what I needed didnt knew you could hook up those variable so easily
Thanks