C4D - Creating buttons for content?? Personal plugins and scriptsCustomizing the interface
Posted 16 May 2012 - 05:23 PM
Also does anyone know how to add a new tab to the interface? I would love to take the PyDeform menu and add that to a tab with the Attribute and Layer tabs in that palette.
Posted 16 May 2012 - 06:06 PM
not sure how to get them to call certain files, but you can get them to call commands.
thats all the help i can be.
https://plus.google....lekseyVoz/posts <- google+ page
Posted 16 May 2012 - 09:09 PM
Then add your lib and scene to the path such as:
''' Load Object from Content Browser , tcastudios.com©2011 ''' import c4d from c4d import documents def main(): load = documents.MergeDocument(doc,'preset://steadybakev12.lib4d/Xref_xPLAY',True) if load is False: print 'Not Found' return True c4d.EventAdd() if __name__=='__main__': main()
And, how to make tabs… really ?
Posted 16 May 2012 - 11:04 PM
Can you explain anymore on the above code? On the design side everything is okay, on the scripting side... uh this is the first thing I have ever done. Thanks Lennart!!
Posted 21 May 2012 - 08:19 PM
the "True" flag from earlier example with the exact Flags.
(Found in the Py SDK under MergeDocument()
''' Load Object with Materials from Content Browser , tcastudios.com©2012 ''' import c4d from c4d import documents def main(): load = documents.MergeDocument(doc,'preset://Mylib.lib4d/MyItem',c4d.SCENEFILTER_OBJECTS | c4d.SCENEFILTER_MATERIALS) if load is False: print 'Not Found' return True c4d.EventAdd() if __name__=='__main__': main()
Posted 21 May 2012 - 10:08 PM
Posted 24 May 2012 - 03:59 PM
Posted 24 May 2012 - 06:08 PM
Posted 24 May 2012 - 07:35 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users