Gord.T
Still "Senior Member"
Here's a couple more scripts maybe someone can use.
Sometimes I have an object with many seperate pieces that need to use a single texture.
By temporarily combining them into a single object with poly selection tags, I can
unwrap, scale and position the UV's into a single UV region for use with a single texture.
After unwrapping I can break the object back into it's original pieces
and then assign a single texture to all.
This can be done manually ofcourse but it can get tedious when there are many parts.
The 2 scripts I created (posted below) are 'connect_with_tags' to create a single object for unwrapping
and then 'disconnect_by_tags' to break that back up into it's original pieces.
Tested with C4DR10.1. It should work for 9.6 to 10.5 also.
For other versions of C4D the values of the constants found at the top of the page will have to be changed.
For example the function 'Connect' has a value of 12144, as defined in the Command Manager, in R9.6 to R10x.
Sometimes I have an object with many seperate pieces that need to use a single texture.
By temporarily combining them into a single object with poly selection tags, I can
unwrap, scale and position the UV's into a single UV region for use with a single texture.
After unwrapping I can break the object back into it's original pieces
and then assign a single texture to all.
This can be done manually ofcourse but it can get tedious when there are many parts.
The 2 scripts I created (posted below) are 'connect_with_tags' to create a single object for unwrapping
and then 'disconnect_by_tags' to break that back up into it's original pieces.
Tested with C4DR10.1. It should work for 9.6 to 10.5 also.
For other versions of C4D the values of the constants found at the top of the page will have to be changed.
For example the function 'Connect' has a value of 12144, as defined in the Command Manager, in R9.6 to R10x.