View Full Version : render tag scripts
deadalvs 08-13-2009, 01:31 PM hi ..
can anyone tell me how powerful render tags can be handled with coffee scripts ?
i've done a lot of MEL scripting (maya), but have not (yet) started coding cinema.
* * *
an example:
is it possible to select a material, let's say the window glass in an architectural exterior view. now the script should select all related objects with that material and assign them a rendertag with AO turned off.
i know this is pretty basic, but a starting point. how would that code look like in a small window with a "hello world" button ?
or a button that changes each of the selected material tags to cubic projection ?
any inputs welcome ..
|
|
deadalvs
08-13-2009, 01:39 PM
or how can i select all the object related render tags (assuming that there's only one rendertag per material and object) from simply having one material selected ?
:banghead:
dataflow
08-13-2009, 02:39 PM
you can select all object with same material by just right click on that material from the material manager and choosing "Select Texture Tag/Object"
then you can create a (im guessing you mean) "Compositing" tag.
and when you change the setting in 1 tag all the rest will change (because all should be selected)
deadalvs
08-13-2009, 02:59 PM
oh i know that .. (thanks anyway).
* * *
following example.
you have tree cubes (red, green, blue) grouped as under a null. three corresponding materials.
now if i do "select all texture/object tags" with the RMB command, the red cube is selected. so in the object manager, i assign a render tag (automatically to all selected objects) and correctly, i can simultaneously enter the values on ONE tag.
ok. the channels 1, 2, 3 render correct.
but since the whole group (null) of cubes is an object itself that i wand as a matte on a separate channel, i have the problem that this tag doesn't render correct ! i can assign the null a rendertag with an individual channel, but this renders blank, NOT with a matte where all three cubes are seen as i want..
THIS problem can be solved by accessing a second matte channel per tag assigning all children cubes to the 4th channel. BUT i'm screwed when i want to re-select ONLY all rendertags with channel 2 AND 15 in ONE tag ..
i just wanna save a lot of handwork, clicking up and down thru hiearchy.. so the question.. is this scriptable ?
:shrug:
deadalvs
08-13-2009, 03:25 PM
or is there at least an easy way to select all the objects with material A and replace all material tags with material B ? i can assign B, but it just adds an other tag which screws up all previous settings ...
?
:banghead:
Jorge Arango
08-15-2009, 12:23 AM
or is there at least an easy way to select all the objects with material A and replace all material tags with material B ? i can assign B, but it just adds an other tag which screws up all previous settings ...
?
:banghead:
Select the original material in the material manager, then, in the functions menu, select <select texture tags/objects>, then, in the AM, drag and drop the new material in the material field of the tag properties.
CGTalk Moderation
08-15-2009, 12:23 AM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.