plugin tag works just for 1 object
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/11/2012 at 05:27, xxxxxxxx wrote:
Hi Jops,
> >> data.GetBool(c4d.FSPA_TIMELINEONOFF) doesnt work... I dont think that ists a big problem
Sorry, forgot to tell you about it. That may be due to the symbolcache Cinema 4D generates. If
you change your plugin resource, Cinema might not be able to detect this and the symbolcache
won't change. The symbols in this file are loaded and then embedded into the c4d module, instead
of parsing all resources once again (which would delay startup time). You can manually delete the
file from your plugin while developing, but make sure your plugin does not delete it when you have
released it.The file is located at %appdata%/MAXON/Cinema 4D RXX/prefs. It is called coffeesymbolcache in
R12 and symbolcache in R13+.Best,
Niklas -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/11/2012 at 03:16, xxxxxxxx wrote:
Hi Niklas,
but then it seems to me that handling the way I do is more stable?
if I release a new version of the plugin I have to take care about the cache on every computer the former version was installed?best regards
Jops -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/11/2012 at 03:58, xxxxxxxx wrote:
Hi Niklas,
my plugin is not running on the renderfarm
is there something I have to care about?I uploaded the current version.
best regards
Jops -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/11/2012 at 04:01, xxxxxxxx wrote:
ok maybe I have to explain something... that might be the root of the problem.
I have to find out If the scene is rendered in the picturefiewer or in the editorview. therefor I check:
if doc == documents.GetActiveDocument() :
this works fine for the picturemanager and the editor view but maybe not for the renderfarm.
the plugin is installes on every client.
best regards
Jops -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/11/2012 at 07:42, xxxxxxxx wrote:
You should get the correct doc with:
doc = mytag.GetObject().GetDocument()Cheers
Lennart -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/11/2012 at 05:44, xxxxxxxx wrote:
Thanks lennart,
that was by the way something I was looking for, as GetOrigin doesnt work for a plugin
but:
I actually was looking for a possibility to find out if the szene is rendered in the pictureviewer, the renderfarm or the editorview.
this little function works good for the editor and pictureviewer, but not for the netrender (unfortunatelydef is_render() : # find out if rendered in Pictureviewer if doc == documents.GetActiveDocument() : return True else: return False
best regards
Jops -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/11/2012 at 06:18, xxxxxxxx wrote:
ok one step further:
this code works for pictureviewer and batchrender but not for netrender
def is_render() : # find out if rendered in Pictureviewer, batchrender and net if c4d.documents.GetBatchRender().IsRendering() : # finds out if batchrender return False if doc == documents.GetActiveDocument() : # finds out if pictureviewer return True else: return False
so maybe someone knows how I can find out If the scene is rendering with netrender?
thanks a lot
Jops -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/11/2012 at 08:12, xxxxxxxx wrote:
Have you tried to call c4d.CheckIsRunning(c4d.CHECKISRUNNING_EDITORRENDERING) and c4d.CheckIsRunning(c4d.CHECKISRUNNING_EXTERNALRENDERING)?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/11/2012 at 01:29, xxxxxxxx wrote:
Hi Yannick,
thanks again. unfortunately I didnt find it in the SDK searching for render and rendering
but now you told be thanks
c4d.CheckIsRunning(c4d.CHECKISRUNNING_EDITORRENDERING)
not working ... but I dont need it anywayc4d.CheckIsRunning(c4d.CHECKISRUNNING_EXTERNALRENDERING)
working for pictureviewer and netrender but not for batchrenderso to include batchrender the function looks loke this:
def is_rendering() : if c4d.CheckIsRunning(c4d.CHECKISRUNNING_EXTERNALRENDERING) or c4d.documents.GetBatchRender().IsRendering() : return True else: return False
it seems to work. great!
thank you all for the help
Jops -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/11/2012 at 03:22, xxxxxxxx wrote:
again... thanks a lot to all that helped me.
I published the Plugin Fs_preview_accelerator on my website.
http://www.webarts.net (english button is in the upper right corner.best regards
Jops