Clearing several caches with one button

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 05 May 2012   #1
Clearing several caches with one button

I'm trying use xpresso and user data to link the Calculate Cache and Empty Cache properties for a dynamic spline, a mograph cloner and a cloth tag, but can't seem to find any relevant options under their tag properties in xpresso.

Ideally what I'd like to achieve is a list of buttons as follows:
Clear All Caches
Bake Spline
Bake Mograph
Bake Cloth

Any ideas?
__________________
www.pixelburn.co.uk
 
Old 05 May 2012   #2
buttons are never reflected in xpresso port listings, maxon seems to define them as logical
not applicable to the xpresso node system. also the userdata description interface doesn't
provide a button component, in contrast to c4ds *native* description interface.

the fastest way would be to write a bunch of scripts and tie them with some icons into
your interface. you could also write a small plugin. a script to bake your dynamics could be
something like this :

import c4d
from c4d import gui
#Welcome to the world of Python

def main():
    dwo = doc.FindSceneHook(180000100) # get the dynworldobject (aka the dynamics tab - accessed by ctrl/command + d))
    c4d.CallButton(dwo, c4d.WORLD_CACHE_BAKE) # id taken from dynworldobject.h

if __name__=='__main__':
    main()


the scripts are quite simple, but you have to have a basic understanding of c4ds api.

Last edited by littledevil : 05 May 2012 at 09:27 AM.
 
Old 05 May 2012   #3
Thanks for your help but I think that is a bit beyond me! Last day on the project so will have to do it manually.
__________________
www.pixelburn.co.uk
 
Old 05 May 2012   #4
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:48 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.