PDA

View Full Version : I GetDirty, you SetDirty


imogwaii
08-24-2010, 11:05 PM
Hello,
i've developed a little py4d tagplugin that changes track behaviour (CTrack) for PSR. Now, I'm very new to plugin creating, so i have no idea what cinema does under the hood, and if my idea of implementing it is the best. So perhaps someone with experience can shed light on this :)

I have my main plugincode located in the :def Execute method of the TagPlugin. This code gets executed every new frame and everytime i manipulate parameters in the tag. But this doesn't need to be done. I need my code only to run when the user changes parameters. I then manipulate the CTrack.SetBefore() und After().
I guess thats not the best idea because other threads might too manipulate the CTrack data? Or is it okay to do it this way?
Then, how do i control if my Tag was manipulated (parameters changed?). I tried with SetDirty() and GetDirty() but since i have really no idea how to use these, it didn't work out.

...and for something totally unrelated: How do i create a Button in my layout, and how the heck can i check if it was pressed? I created my button in the .res, and it appears in cinema, but i don't know quite how to access it.

ideas? :)
mogwaii

CGTalk Moderation
08-24-2010, 11:05 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.