PDA

View Full Version : Python tag plugins without multiple files?


Scott Ayers
11-22-2010, 09:17 PM
Is it possible to create python tag plugins in one single file instead of having to use the res folder and multiple files?

I much prefer to use one file to write my plugins because multiple files is overkill to handle a couple blocks of code. Plus it's a royal pain trying to set up and tweak my tag GUI items when their information is spread acrossed multiple files.
It's all way, way, way overkill for the small plugins I make.

I know how to do this when writing dialog plugins. But not with tag plugins.
I've looked around but I can't find any examples of single file python tag plugins that have GUI items in them.

-ScottA

donelgreeko
11-22-2010, 10:36 PM
Hi,

maybe a Python Tag is what you are actually looking for? Otherwise you can
simply create Python Tag Plugins in one file but then without descriptions for the GUI.

Cheers, Seb

Scott Ayers
11-22-2010, 11:02 PM
Thanks for replying Sebastian,

I know this is normally done with the python tag. But I'm new at making tag based plug ins. So I often end up having to close C4D-->Fix the code-->Reopen C4D-->Check for errors...Repeat.
Having all of the GUI stuff in separate folders really makes this whole work flow a painful process. So I was hoping that I could develope them with everything in one single file. Then separate them out once I'm finished.

I've tried to figure out how to do that but there's a few things I'm stuck on.
Do I use an enum to list out my ID's?
If so. How do I terminate the enum block? Do I use the _Dummy like a coffee?
And what about the end of the plugin file where it does all the referencing to those other files? How Do I write that?

I guess what I need to see a very simple example so I can see how those little formatting issues need to be written.
Something very simple like a tag plugin that just has a check box that turns the object X-Ray option on/off for the object it's attached to.


-ScottA

CGTalk Moderation
11-22-2010, 11:02 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.