Custom Attributes for All

Custom Attributes for All

mahmutoymaci
Enthusiast Enthusiast
525 Views
8 Replies
Message 1 of 9

Custom Attributes for All

mahmutoymaci
Enthusiast
Enthusiast

How can I define custom attributes for all editable_poly or editable_mesh object, including the ones I will create new and converting object?

0 Likes
526 Views
8 Replies
Replies (8)
Message 2 of 9

MartinBeh
Advisor
Advisor

Note entirely sure I understand your request. Could you please write more than a single sentence about what you are trying to do?

 

For now, I can point towards the "Attribute Holder" modifier, which is a convenient way to attach a CA (and then you can copy-paste the modifier).

 

Also, take a look at Paul's "PEN Attribute Holder" script at https://paulneale.com/pen-attribute-holder/ in case you want to load and save presets for your attributes.

Martin B   EESignature
→ please 'Like' posts that are helpful; if a post answers your question please click the "Accept Solution" button.
0 Likes
Message 3 of 9

mahmutoymaci
Enthusiast
Enthusiast

I will write a script. I will add it to the \plugins folder. Every time I start 3ds Max, "Custom Attributes" will be added to all editable_poly or editable_mesh objects. It doesn't matter what algorithm I will write.

0 Likes
Message 4 of 9

denisT.MaxDoctor
Advisor
Advisor

The solution is simple: you need to track all scene callbacks that cover every way a node of the specified class can appear (load, create, clone, convert, etc.).

The challenge is ensuring you have enough experience to verify that your attribute isn’t already applied, is unique, and matches the latest version.

If you are skillful enough, good luck!
If not, please don't make a mess. Someone will have to clean it up later.

0 Likes
Message 5 of 9

mahmutoymaci
Enthusiast
Enthusiast

Yes, I tried a lot about "callback" formulas but I couldn't find the right one. That's why I opened a topic.

0 Likes
Message 6 of 9

denisT.MaxDoctor
Advisor
Advisor

I don't think the idea of adding a custom attribute on each editable node is a good idea at all. However, let's first just figure out why you need it and try to find a suitable solution. So why do you need that? How do you want to use it?

0 Likes
Message 7 of 9

mahmutoymaci
Enthusiast
Enthusiast

This is a sample. its working good. I want make similiar.
https://www.youtube.com/watch?v=46LzCzHTjDQ

0 Likes
Message 8 of 9

denisT.MaxDoctor
Advisor
Advisor

From a system design perspective, automatically adding a custom attribute to every node is a bad idea.

Just create a macro button instead. Cool doesn’t always mean good.

0 Likes
Message 9 of 9

mahmutoymaci
Enthusiast
Enthusiast

Thank you for informing me.

0 Likes