Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Conflict parameters in duplicate plugin

Explorer ,
Mar 07, 2016 Mar 07, 2016

Well.. Another question.

I've done plugin and stuck with next question. If I duplicate my plugin on the same layer and change of any parameter, they begin to clash.


Details:
Plugin with moving particles and with flag PF_OutFlag_NON_PARAM_VARY. In every Render() call I check frame number and, if UI parameters changed, change particles behavior. If I duplicate my plugin one of them responds to the another UI settings.

For particles and they behaviors I create separate classes without nests, extends or implements. Also I use singleton class with UI parameters.

Why plugins did behave with duplicate?

Must I use handles for every object or class? Or am I wrong to assess the situation?

Thank you!

With warm,

Mike.

TOPICS
SDK
468
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 07, 2016 Mar 07, 2016

Hi Mike,

first idea, may be wrong, but do you use any static values? Could come from there...

Cheers,

François

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 08, 2016 Mar 08, 2016

Hi, françois leroy!

Thank you for reply!

Nope, I didn't use static values. But your message have pushed me to think. If I declare singleton outside of functions.. Could this affect my problem?

With warm,
Mike.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 08, 2016 Mar 08, 2016

Well, I don't know anything about singleton...

But I do think you shouldn't declare anything outside of functions.

Instead, you could declare everything you need during one of the calls (Sequence Setup or re-setup for example, depends on what you need) and store it in sequence data. Then you can access it during other calls.

Hope it helps,

François

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 10, 2016 Mar 10, 2016
LATEST

Thank you so much, françois leroy!

I'll try to apply your advices at closest time.

With warm,

Mike

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines