Notifications
Clear all
[Closed] Removing default attributes
Feb 20, 2011 9:16 pm
So I’m creating some custom attributes on a rectangle like so:
(
local myRollout = Rectangle length:100 width:100 cornerRadius:0 transform:(matrix3 [1,0,0] [0,0,1] [0,-1,0] [0,0,0]) isSelected:off
customAttributes = attributes objectData
(
parameters main rollout:paramsRollout
(
myrolloutWidth type:#integer ui:myrolloutWidth default:100
myrolloutLength type:#integer ui:myrolloutLength default:100
myrolloutName type:#string ui:myrolloutET
)
rollout paramsRollout "VM Editor IDs"
(
editText myrolloutET "Name:" text:"myRollout" type:#string
spinner myrolloutWidth "Width:" range:[0,1000,100] type:#integer
spinner myrolloutLength "Length:" range:[0,1000,100] type:#integer
)
)
custAttributes.add myRollout customAttributes
)
But now I’d like to remove the default attributes that are created along with the rectangle. I’m referring to the ‘Rendering’, ‘Interpolation’, and ‘Parameters’ rollouts specifically. I’d like to have only the custom attributes displayed in the modify panel. Is this possible?
3 Replies
Feb 20, 2011 9:16 pm
I don’t think you can remove the attributes/properties in the modify panel. It would be best to put the CAs in an Attribute Holder mod. Then it will be clean in appearance.
Feb 20, 2011 9:16 pm
No. It’s not possible. You can’t delete or make hidden any baseobject parameter. You can make your own plug-in to extend Rectangle. In this case all basic parameters will be on delegate level.